Enum SslMode
- All Implemented Interfaces:
Serializable, Comparable<SslMode>
This parameter specifies the desired security state of the connection to the server.
More information can be found in MySQL Reference Manual
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionestablish an unencrypted connection.establish an encrypted connection if the server supports encrypted connections, falling back to an unencrypted connection if an encrypted connection cannot be established.establish an encrypted connection if the server supports encrypted connections.Like REQUIRED, but additionally verify the server Certificate Authority (CA) certificate against the configured CA certificates.Like VERIFY_CA, but additionally perform host name identity verification by checking the host name the client uses for connecting to the server against the identity in the certificate that the server sends to the client. -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
DISABLED
establish an unencrypted connection. -
PREFERRED
establish an encrypted connection if the server supports encrypted connections, falling back to an unencrypted connection if an encrypted connection cannot be established. -
REQUIRED
establish an encrypted connection if the server supports encrypted connections. The connection attempt fails if an encrypted connection cannot be established. -
VERIFY_CA
Like REQUIRED, but additionally verify the server Certificate Authority (CA) certificate against the configured CA certificates. The connection attempt fails if no valid matching CA certificates are found. -
VERIFY_IDENTITY
Like VERIFY_CA, but additionally perform host name identity verification by checking the host name the client uses for connecting to the server against the identity in the certificate that the server sends to the client.
-
-
Field Details
-
VALUES
-
value
-
-
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
-
of
-