Class OkHttp2JweInterceptor
- java.lang.Object
-
- com.mastercard.developer.interceptors.OkHttp2EncryptionInterceptor
-
- com.mastercard.developer.interceptors.OkHttp2JweInterceptor
-
- All Implemented Interfaces:
okhttp3.Interceptor
public class OkHttp2JweInterceptor extends OkHttp2EncryptionInterceptor
An OkHttp2 JWE interceptor for encrypting/decrypting parts of HTTP payloads.
-
-
Constructor Summary
Constructors Constructor Description OkHttp2JweInterceptor(EncryptionConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringdecryptPayload(okhttp3.Response response, okhttp3.Response.Builder responseBuilder, String responsePayload)protected StringencryptPayload(okhttp3.Request request, okhttp3.Request.Builder requestBuilder, String requestPayload)-
Methods inherited from class com.mastercard.developer.interceptors.OkHttp2EncryptionInterceptor
from, intercept
-
-
-
-
Constructor Detail
-
OkHttp2JweInterceptor
public OkHttp2JweInterceptor(EncryptionConfig config)
-
-
Method Detail
-
encryptPayload
protected String encryptPayload(okhttp3.Request request, okhttp3.Request.Builder requestBuilder, String requestPayload) throws EncryptionException
- Specified by:
encryptPayloadin classOkHttp2EncryptionInterceptor- Throws:
EncryptionException
-
decryptPayload
protected String decryptPayload(okhttp3.Response response, okhttp3.Response.Builder responseBuilder, String responsePayload) throws EncryptionException
- Specified by:
decryptPayloadin classOkHttp2EncryptionInterceptor- Throws:
EncryptionException
-
-