Class AuthenticatorException

  • All Implemented Interfaces:
    Serializable

    public class AuthenticatorException
    extends CouchbaseException
    This exception is commonly raised when an attempt to retrieve a credential in an Authenticator is made, but cannot be fulfilled. The exception allows to retrieve the CredentialContext and specific for which the request was made.
    Since:
    2.3
    Author:
    Simon Baslé
    See Also:
    Serialized Form
    • Method Detail

      • context

        public CredentialContext context()
        Returns:
        the context enum in which the credential was requested.
      • specific

        public String specific()
        Returns:
        the specific sub-context for which the credential was request (can be null).
      • foundCredentials

        public int foundCredentials()
        Returns:
        the number of credentials found for the failing request.