Package org.mariadb.jdbc.export
Enum SslMode
- All Implemented Interfaces:
Serializable
,Comparable<SslMode>
SSl requirement
-
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 aliasesgetValue()
static SslMode
Returns 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
-
-
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
Create SSLMode from enumeration value, or aliases- Parameters:
value
- enumeration value or alias- Returns:
- SSLMode if corresponding enumeration value or alias found
-