Package org.mariadb.jdbc.export
Enum Class SslMode
- All Implemented Interfaces:
Serializable
,Comparable<SslMode>
,Constable
SSl requirement
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNO 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 SslMode
Create SSLMode from enumeration value, or aliasesstatic SslMode
Returns the enum constant of this class with the specified name.static SslMode[]
values()
Returns an array containing the constants of this enum class, 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
-
-
Field Details
-
value
-
aliases
-
-
Constructor Details
-
SslMode
-
-
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
-
from
Create SSLMode from enumeration value, or aliases- Parameters:
value
- enumeration value or alias- Returns:
- SSLMode if corresponding enumeration value or alias found
-