Class OkHttp2JweInterceptor
- java.lang.Object
-
- com.mastercard.developer.interceptors.OkHttp2EncryptionInterceptor
-
- com.mastercard.developer.interceptors.OkHttp2JweInterceptor
-
- All Implemented Interfaces:
com.squareup.okhttp.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(com.squareup.okhttp.Response response, com.squareup.okhttp.Response.Builder responseBuilder, String responsePayload)protected StringencryptPayload(com.squareup.okhttp.Request request, com.squareup.okhttp.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(com.squareup.okhttp.Request request, com.squareup.okhttp.Request.Builder requestBuilder, String requestPayload) throws EncryptionException
- Specified by:
encryptPayloadin classOkHttp2EncryptionInterceptor- Throws:
EncryptionException
-
decryptPayload
protected String decryptPayload(com.squareup.okhttp.Response response, com.squareup.okhttp.Response.Builder responseBuilder, String responsePayload) throws EncryptionException
- Specified by:
decryptPayloadin classOkHttp2EncryptionInterceptor- Throws:
EncryptionException
-
-