Class OpenFeignDecoderExecutor
- java.lang.Object
-
- com.mastercard.developer.interceptors.OpenFeignDecoderExecutor
-
- All Implemented Interfaces:
feign.codec.Decoder
- Direct Known Subclasses:
OpenFeignFieldLevelEncryptionDecoder,OpenFeignJweDecoder
public abstract class OpenFeignDecoderExecutor extends Object implements feign.codec.Decoder
A Feign decoder for decrypting parts of HTTP payloads.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Objectdecode(feign.Response response, Type type)protected abstract StringdecryptPayload(feign.Response response, String responsePayload)static OpenFeignDecoderExecutorfrom(EncryptionConfig config, feign.codec.Decoder delegate)protected feign.ResponseremoveHeaders(feign.Response response)
-
-
-
Method Detail
-
from
public static OpenFeignDecoderExecutor from(EncryptionConfig config, feign.codec.Decoder delegate)
-
decryptPayload
protected abstract String decryptPayload(feign.Response response, String responsePayload) throws EncryptionException
- Throws:
EncryptionException
-
decode
public Object decode(feign.Response response, Type type) throws IOException
- Specified by:
decodein interfacefeign.codec.Decoder- Throws:
IOException
-
removeHeaders
protected feign.Response removeHeaders(feign.Response response)
-
-