Enum Class AuthMode

java.lang.Object
java.lang.Enum<AuthMode>
com.aerospike.client.policy.AuthMode
All Implemented Interfaces:
Serializable, Comparable<AuthMode>, Constable

public enum AuthMode extends Enum<AuthMode>
Authentication mode.
  • Enum Constant Details

    • INTERNAL

      public static final AuthMode 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

      public static final AuthMode 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

      public static final AuthMode 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

      public static final AuthMode 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

      public static AuthMode[] 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

      public static AuthMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null