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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Interceptor.Companion Companion
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.