Class 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 Detail

      • ClientCertificateAuthenticator

        public ClientCertificateAuthenticator​(@NonNull
                                              TLSIdentity identity)
        Creates a ClientCertificateAuthenticator object with the given client identity.
        Parameters:
        identity - client identity
    • Method Detail

      • getIdentity

        @NonNull
        public TLSIdentity getIdentity()
        Get the client identity.
        Returns:
        client identity