Class CertificateFailureInterceptor
-
- All Implemented Interfaces:
-
okhttp3.Interceptor
public class CertificateFailureInterceptor implements Interceptor
This class helps recover from certificate failures caused by waiting for a client certificate to be provided.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Interceptor.Companion
Companion
-
Constructor Summary
Constructors Constructor Description CertificateFailureInterceptor(SslClientAuth sslClientAuth)
Constructs a new CertificateFailureInterceptor.
-
Method Summary
Modifier and Type Method Description Response
intercept(@NonNull() Interceptor.Chain chain)
Retries a request once if a certificate was used and an SSLHandshakeException occurrs. -
-
Constructor Detail
-
CertificateFailureInterceptor
CertificateFailureInterceptor(SslClientAuth sslClientAuth)
Constructs a new CertificateFailureInterceptor.- Parameters:
sslClientAuth
- The object used to provide the client certificates.
-
-
Method Detail
-
intercept
@NonNull() Response intercept(@NonNull() Interceptor.Chain chain)
Retries a request once if a certificate was used and an SSLHandshakeException occurrs. Otherwise has no effect.
- Parameters:
chain
- Contains information about the intercepted request.
-
-
-
-