@InterfaceStability.Committed @InterfaceAudience.Private public interface Authenticator
CredentialContext). The interface allows SDK
classes to retrieve credentials corresponding to both a context and a specific
(wich can be optional for some contexts).| 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() |
List<Credential> getCredentials(CredentialContext context, String specific)
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.context - the context for which the credential(s) will be used.specific - a more restrictive sub-context specific to the context.IllegalArgumentException - when the context+specific combination is not supported by an Authenticator
implementation.boolean isEmpty()
Authenticator doesn't have any credentials set.Copyright © 2015 Couchbase, Inc.