Package com.couchbase.lite
Class ListenerCertificateAuthenticator
- java.lang.Object
-
- com.couchbase.lite.internal.core.InternalCertAuthenticator
-
- com.couchbase.lite.ListenerCertificateAuthenticator
-
- All Implemented Interfaces:
ListenerAuthenticator
public class ListenerCertificateAuthenticator extends InternalCertAuthenticator
A Listener Certificate Authenticator Certificate base authentication and authorization.
-
-
Field Summary
-
Fields inherited from class com.couchbase.lite.internal.core.InternalCertAuthenticator
BEGIN_CERT, END_CERT
-
-
Constructor Summary
Constructors Constructor Description ListenerCertificateAuthenticator(ListenerCertificateAuthenticatorDelegate delegate)
Create an authenticator that delegates all responsibility for authentication and authorization to the passed delegate.ListenerCertificateAuthenticator(List<Certificate> rootCerts)
Create an authenticator that allows clients whose certificate chains can be verified using (only) on of the certs in the passed list.
-
-
-
Constructor Detail
-
ListenerCertificateAuthenticator
public ListenerCertificateAuthenticator(@NonNull List<Certificate> rootCerts)
Create an authenticator that allows clients whose certificate chains can be verified using (only) on of the certs in the passed list. OS-bundled certs are ignored.- Parameters:
rootCerts
- root certificates used to verify client certificate chains.
-
ListenerCertificateAuthenticator
public ListenerCertificateAuthenticator(@NonNull ListenerCertificateAuthenticatorDelegate delegate)
Create an authenticator that delegates all responsibility for authentication and authorization to the passed delegate. SeeListenerCertificateAuthenticatorDelegate
.- Parameters:
delegate
- an authenticator
-
-