Class EncryptionInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    public class EncryptionInterceptor
    extends Object
    implements okhttp3.Interceptor
    加密拦截器 - 处理请求加密和响应解密
    • Constructor Detail

      • EncryptionInterceptor

        public EncryptionInterceptor​(String apiKey,
                                     String baseUrl)
    • Method Detail

      • intercept

        public okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
                                   throws IOException
        拦截器主入口 - 处理请求加密和响应解密
        Specified by:
        intercept in interface okhttp3.Interceptor
        Throws:
        IOException