Package com.aerospike.client.policy
Enum Class AuthMode
- All Implemented Interfaces:
Serializable
,Comparable<AuthMode>
,Constable
Authentication mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUse external authentication (like LDAP) when user/password defined.Use external authentication (like LDAP) when user/password defined.Use internal authentication when user/password defined.Authentication and authorization based on a certificate. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INTERNAL
Use internal authentication when user/password defined. Hashed password is stored on the server. Do not send clear password. This is the default. -
EXTERNAL
Use external authentication (like LDAP) when user/password defined. Specific external authentication is configured on server. If TLS defined, send clear password on node login via TLS. Throw exception if TLS is not defined. -
EXTERNAL_INSECURE
Use external authentication (like LDAP) when user/password defined. Specific external authentication is configured on server. Send clear password on node login whether or not TLS is defined. This mode should only be used for testing purposes because it is not secure authentication. -
PKI
Authentication and authorization based on a certificate. No user name or password needs to be configured. Requires TLS and a client certificate. Requires server version 5.7.0+
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-