Module org.elasticsearch.sslconfig
Package org.elasticsearch.common.ssl
Enum Class SslVerificationMode
- All Implemented Interfaces:
Serializable
,Comparable<SslVerificationMode>
,Constable
Represents the verification mode to be used for SSL connections.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionVerify the provided certificate against the trust chain, but do not verify the hostname.Verify the provided certificate against the trust chain, and also verify that the hostname to which this client is connected matches one of the Subject-Alternative-Names in the certificate.Verify neither the hostname, nor the provided certificate. -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
abstract boolean
static SslVerificationMode
static SslVerificationMode
Returns the enum constant of this class with the specified name.static SslVerificationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Verify neither the hostname, nor the provided certificate. -
CERTIFICATE
Verify the provided certificate against the trust chain, but do not verify the hostname. -
FULL
Verify the provided certificate against the trust chain, and also verify that the hostname to which this client is connected matches one of the Subject-Alternative-Names in the certificate.
-
-
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
-
isHostnameVerificationEnabled
public abstract boolean isHostnameVerificationEnabled()- Returns:
- true if hostname verification is enabled
-
isCertificateVerificationEnabled
public abstract boolean isCertificateVerificationEnabled()- Returns:
- true if certificate verification is enabled
-
parse
-