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.
-
-
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. -
-
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.
-
onCertificateRequest
abstract void onCertificateRequest(CertificateRequest request)
Invoked when a client certificate is requested.
- Parameters:
request
- An instance of CertificateRequest
-
-
-
-