Class HttpExecuteFieldLevelEncryptionInterceptor
- java.lang.Object
-
- com.mastercard.developer.interceptors.HttpExecuteEncryptionInterceptor
-
- com.mastercard.developer.interceptors.HttpExecuteFieldLevelEncryptionInterceptor
-
- All Implemented Interfaces:
com.google.api.client.http.HttpExecuteInterceptor
,com.google.api.client.http.HttpResponseInterceptor
public class HttpExecuteFieldLevelEncryptionInterceptor extends HttpExecuteEncryptionInterceptor
A Google Client API interceptor for encrypting/decrypting parts of HTTP payloads. See also: -HttpExecuteInterceptor
-HttpResponseInterceptor
-
-
Constructor Summary
Constructors Constructor Description HttpExecuteFieldLevelEncryptionInterceptor(EncryptionConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
decryptPayload(com.google.api.client.http.HttpHeaders headers, String responsePayload)
protected String
encryptPayload(com.google.api.client.http.HttpHeaders headers, String requestPayload)
-
Methods inherited from class com.mastercard.developer.interceptors.HttpExecuteEncryptionInterceptor
from, intercept, interceptResponse
-
-
-
-
Constructor Detail
-
HttpExecuteFieldLevelEncryptionInterceptor
public HttpExecuteFieldLevelEncryptionInterceptor(EncryptionConfig config)
-
-
Method Detail
-
encryptPayload
protected String encryptPayload(com.google.api.client.http.HttpHeaders headers, String requestPayload) throws EncryptionException
- Specified by:
encryptPayload
in classHttpExecuteEncryptionInterceptor
- Throws:
EncryptionException
-
decryptPayload
protected String decryptPayload(com.google.api.client.http.HttpHeaders headers, String responsePayload) throws EncryptionException
- Specified by:
decryptPayload
in classHttpExecuteEncryptionInterceptor
- Throws:
EncryptionException
-
-