public class CertAuthenticator extends Object implements Authenticator
Authenticator enables client certificate based
authentication.
Note that it doesn't actually handles any credentials at this
point since the username is part of the certificate passed
into the CouchbaseEnvironment.| Modifier and Type | Field and Description |
|---|---|
static CertAuthenticator |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
List<Credential> |
getCredentials(CredentialContext context,
String specific)
Retrieve the credentials store by this
Authenticator for the given CredentialContext
and optional specific. |
boolean |
isEmpty() |
public static CertAuthenticator INSTANCE
public List<Credential> getCredentials(CredentialContext context, String specific)
AuthenticatorAuthenticator for the given CredentialContext
and optional specific. If no corresponding credential can be found, an empty list is returned. If the
context / specific cannot be processed by this Authenticator, throws an IllegalArgumentException.getCredentials in interface Authenticatorcontext - the context for which the credential(s) will be used.specific - a more restrictive sub-context specific to the context.public boolean isEmpty()
isEmpty in interface AuthenticatorAuthenticator doesn't have any credentials set.Copyright © 2015 Couchbase, Inc.