Enum SslMode
- All Implemented Interfaces:
Serializable, Comparable<SslMode>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionVERIFY_FULL when the server announces TLS, no encryption otherwise.NO SSLEncryption only (no certificate and hostname validation) (DEVELOPMENT ONLY)Encryption, certificates validation, BUT no hostname verificationStandard SSL use: Encryption, certificate validation and hostname validation -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SslModeCreate SSLMode from enumeration value, or aliasesgetValue()static SslModeReturns the enum constant of this type with the specified name.static SslMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DISABLE
NO SSL -
TRUST
Encryption only (no certificate and hostname validation) (DEVELOPMENT ONLY) -
VERIFY_CA
Encryption, certificates validation, BUT no hostname verification -
VERIFY_FULL
Standard SSL use: Encryption, certificate validation and hostname validation -
ALLOW
VERIFY_FULL when the server announces TLS, no encryption otherwise. For a mix of servers with and without TLS behind one connection string: the choice is made from the capability flags the server sends in clear, so an active attacker can downgrade the connection; a migration mode, to be replaced by VERIFY_FULL once every server has TLS.
-
-
Field Details
-
value
-
aliases
-
-
Constructor Details
-
SslMode
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
from
-