Interface CertificateProvider

  • All Implemented Interfaces:

    
    public interface CertificateProvider
    
                        

    Interface definition for a class that will be called when a certificate challenge is received. The provider can be used with SslClientAuth for OKHttp certificate support or with the OAuth2WebViewProcessor and SamlWebViewProcessor. When using the provider with the android.webkit.WebView, the clearClientCertPreferences call is required to clear any cached certificates.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void clear(String host, int port) Invoked if the certificate for the given host and port is rejected.
      abstract void clear() Invoked if the user wishes to forget all certificates from the provider.
      abstract void onCertificateRequest(CertificateRequest request) Invoked when a client certificate is requested.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • clear

         abstract void clear(String host, int port)

        Invoked if the certificate for the given host and port is rejected.

        Parameters:
        host - The host name of the server requesting the certificate.
        port - The port number of the server requesting the certificate
      • clear

         abstract void clear()

        Invoked if the user wishes to forget all certificates from the provider.