public enum SslMode extends Enum<SslMode>
| Enum Constant and Description | 
|---|
ALLOW
first try a non-SSL connection; if that fails, try an SSL connection. 
 | 
DISABLE
only try a non-SSL connection. 
 | 
PREFER
first try an SSL connection; if that fails, try a non-SSL connection. 
 | 
REQUIRE
only try an SSL connection. 
 | 
VERIFY_CA
only try an SSL connection, and verify that the server certificate is issued by a trusted certificate authority (CA). 
 | 
VERIFY_FULL
only try an SSL connection, verify that the server certificate is issued by a trusted CA and that the requested server host name matches that in the certificate. 
 | 
| 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 DISABLE
public static final SslMode ALLOW
public static final SslMode PREFER
public static final SslMode REQUIRE
public static final SslMode VERIFY_CA
public static final SslMode VERIFY_FULL
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 © 2020 Eclipse. All rights reserved.