Package com.couchbase.lite
Class ClientCertificateAuthenticator
java.lang.Object
com.couchbase.lite.internal.BaseAuthenticator
com.couchbase.lite.ClientCertificateAuthenticator
- All Implemented Interfaces:
Authenticator
public final class ClientCertificateAuthenticator
extends com.couchbase.lite.internal.BaseAuthenticator
ENTERPRISE EDITION API
An authenticator for client certificate authentication which happens during the TLS handshake when connecting to a server.
The client certificate authenticator is currently used only for authenticating to a URLEndpointListener. The URLEndpointListener must have TLS enabled and must be configured with a ListenerCertificateAuthenticator to verify client certificates.
-
Constructor Summary
ConstructorDescriptionClientCertificateAuthenticator
(TLSIdentity identity) Creates a ClientCertificateAuthenticator object with the given client identity. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
authenticate
(Map<String, Object> options) Get the client identity.
-
Constructor Details
-
ClientCertificateAuthenticator
Creates a ClientCertificateAuthenticator object with the given client identity.- Parameters:
identity
- client identity
-
-
Method Details
-
getIdentity
Get the client identity.- Returns:
- client identity
-
authenticate
- Specified by:
authenticate
in classcom.couchbase.lite.internal.BaseAuthenticator
-