@InterfaceStability.Uncommitted @InterfaceAudience.Public public class PasswordAuthenticator extends Object implements Authenticator
Authenticator
for RBAC users in CouchbaseConstructor and Description |
---|
PasswordAuthenticator(String password) |
PasswordAuthenticator(String username,
String password) |
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() |
String |
password() |
String |
username() |
public PasswordAuthenticator(String password)
public List<Credential> getCredentials(CredentialContext context, String specific)
Authenticator
Authenticator
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 Authenticator
context
- 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 Authenticator
Authenticator
doesn't have any credentials set.public String username()
public String password()
Copyright © 2015 Couchbase, Inc.