Class HttpExecuteEncryptionInterceptor
java.lang.Object
com.mastercard.developer.interceptors.HttpExecuteEncryptionInterceptor
- All Implemented Interfaces:
com.google.api.client.http.HttpExecuteInterceptor,com.google.api.client.http.HttpResponseInterceptor
- Direct Known Subclasses:
HttpExecuteFieldLevelEncryptionInterceptor,HttpExecuteJweInterceptor
public abstract class HttpExecuteEncryptionInterceptor
extends Object
implements com.google.api.client.http.HttpExecuteInterceptor, com.google.api.client.http.HttpResponseInterceptor
A Google Client API interceptor for encrypting/decrypting parts of HTTP payloads.
See also:
-
HttpExecuteInterceptor
- HttpResponseInterceptor-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringdecryptPayload(com.google.api.client.http.HttpHeaders headers, String responsePayload) protected abstract StringencryptPayload(com.google.api.client.http.HttpHeaders headers, String requestPayload) from(EncryptionConfig config) voidintercept(com.google.api.client.http.HttpRequest request) voidinterceptResponse(com.google.api.client.http.HttpResponse response)
-
Constructor Details
-
HttpExecuteEncryptionInterceptor
public HttpExecuteEncryptionInterceptor()
-
-
Method Details
-
encryptPayload
protected abstract String encryptPayload(com.google.api.client.http.HttpHeaders headers, String requestPayload) throws EncryptionException - Throws:
EncryptionException
-
decryptPayload
protected abstract String decryptPayload(com.google.api.client.http.HttpHeaders headers, String responsePayload) throws EncryptionException - Throws:
EncryptionException
-
from
-
intercept
- Specified by:
interceptin interfacecom.google.api.client.http.HttpExecuteInterceptor- Throws:
IOException
-
interceptResponse
- Specified by:
interceptResponsein interfacecom.google.api.client.http.HttpResponseInterceptor- Throws:
IOException
-