public enum SslMode extends Enum<SslMode>
Enum Constant and Description |
---|
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.
|
VERIFY_CA
Like REQUIRED, but additionally verify the server Certificate Authority (CA) certificate against the configured CA certificates.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static SslMode |
of(String value) |
static SslMode |
valueOf(String name)
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.
|
public static final SslMode DISABLED
public static final SslMode PREFERRED
public static final SslMode REQUIRED
public static final SslMode VERIFY_CA
public static final SslMode VERIFY_IDENTITY
public static SslMode[] values()
for (SslMode c : SslMode.values()) System.out.println(c);
public static SslMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 Eclipse. All rights reserved.