public abstract class OkHttpEncryptionInterceptor extends Object implements okhttp3.Interceptor
| Constructor and Description |
|---|
OkHttpEncryptionInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
decryptPayload(okhttp3.Response response,
okhttp3.Response.Builder newBuilder,
String responsePayload) |
protected abstract String |
encryptPayload(okhttp3.Request request,
okhttp3.Request.Builder newBuilder,
String requestPayload) |
static OkHttpEncryptionInterceptor |
from(EncryptionConfig config) |
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
protected abstract String decryptPayload(okhttp3.Response response, okhttp3.Response.Builder newBuilder, String responsePayload) throws EncryptionException
EncryptionExceptionprotected abstract String encryptPayload(okhttp3.Request request, okhttp3.Request.Builder newBuilder, String requestPayload) throws EncryptionException
EncryptionExceptionpublic static OkHttpEncryptionInterceptor from(EncryptionConfig config)
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.InterceptorIOExceptionCopyright © 2021. All rights reserved.