Class CertAuthenticator

All Implemented Interfaces:

public class CertAuthenticator
extends Object
implements Authenticator
This 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.
Michael Nitschinger
  • Field Details

  • Method Details

    • getCredentials

      public List<Credential> getCredentials​(CredentialContext context, String specific)
      Description copied from interface: Authenticator
      Retrieve the credentials store by this 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.
      Specified by:
      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.
      a list of credentials that can be used for the context/operation, or empty list if none was set for this context+specific combination.
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Authenticator
      true if this Authenticator doesn't have any credentials set.