public enum AuthenticationMethod extends java.lang.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(java.lang.String value)
Look up an AuthenticationMethod based on the given value of a setting.
|
static java.util.List<java.lang.String> |
getAvailableMethods() |
java.lang.String |
getValue()
The configuration value that corresponds to this method
|
static AuthenticationMethod |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static AuthenticationMethod get(java.lang.String value)
value - The setting stringpublic static java.util.List<java.lang.String> getAvailableMethods()
public java.lang.String getValue()