Enum CredentialContext

java.lang.Object
java.lang.Enum<CredentialContext>
com.couchbase.client.java.auth.CredentialContext
All Implemented Interfaces:
Serializable, Comparable<CredentialContext>, java.lang.constant.Constable

@Committed
@Public
public enum CredentialContext
extends Enum<CredentialContext>
Enum of the contexts that can be used to retrieve an implicit credential from an Authenticator. Note that not all Authenticator implementations will support all these contexts, and some contexts may also require additional information (a "specific").
Since:
2.3
Author:
Simon Baslé
  • Enum Constant Details

  • Method Details

    • values

      public static CredentialContext[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CredentialContext valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null