public enum AuthenticationMethod extends Enum<AuthenticationMethod>
Enum Constant and Description |
---|
BASIC
Basic mode uses basic HTTP authentication using a username and password to authenticate to the Elasticsearch cluster
|
KERBEROS
Kerberos mode uses SPNEGO via HTTP to authenticate to the Elasticsearch cluster
|
PKI
PKI mode uses certificates that are provided to Elasticsearch during the SSL negotiation phase to determine identity.
|
SIMPLE
Simple mode uses no security features to authenticate to the Elasticsearch cluster
|
Modifier and Type | Method and Description |
---|---|
static AuthenticationMethod |
get(String value)
Look up an AuthenticationMethod based on the given value of a setting.
|
static List<String> |
getAvailableMethods() |
String |
getValue()
The configuration value that corresponds to this method
|
static AuthenticationMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationMethod SIMPLE
public static final AuthenticationMethod BASIC
public static final AuthenticationMethod PKI
public static final AuthenticationMethod KERBEROS
public static AuthenticationMethod[] values()
for (AuthenticationMethod c : AuthenticationMethod.values()) System.out.println(c);
public static AuthenticationMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static AuthenticationMethod get(String value)
value
- The setting stringpublic static List<String> getAvailableMethods()
public String getValue()