Package com.couchbase.client.java.auth
Enum 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é
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description BUCKET_ANALYTICS
BUCKET_FTS
BUCKET_KV
BUCKET_MANAGEMENT
BUCKET_N1QL
BUCKET_VIEW
CLUSTER_ANALYTICS
CLUSTER_FTS
CLUSTER_MANAGEMENT
CLUSTER_N1QL
-
Method Summary
Modifier and Type Method Description static CredentialContext
valueOf(String name)
Returns the enum constant of this type with the specified name.static CredentialContext[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BUCKET_KV
-
BUCKET_VIEW
-
BUCKET_N1QL
-
BUCKET_FTS
-
BUCKET_ANALYTICS
-
CLUSTER_N1QL
-
CLUSTER_FTS
-
CLUSTER_ANALYTICS
-
BUCKET_MANAGEMENT
-
CLUSTER_MANAGEMENT
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-