public static enum SslDomain.VerifyMode extends java.lang.Enum<SslDomain.VerifyMode>
VERIFY_PEER_NAME is used by default in client
mode if not configured otherwise, with ANONYMOUS_PEER used for
server mode if not configured otherwise.| Enum Constant and Description |
|---|
ANONYMOUS_PEER
does not require a valid certificate, and permits use of ciphers that
do not provide authentication
|
VERIFY_PEER
Requires peers provide a valid identifying certificate signed by
a trusted certificate.
|
VERIFY_PEER_NAME
Requires peers provide a valid identifying certificate signed
by a trusted certificate, including verifying hostname details
of the certificate using peer details provided when configuring
TLS via
Transport.ssl(SslDomain, SslPeerDetails). |
| Modifier and Type | Method and Description |
|---|---|
static SslDomain.VerifyMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SslDomain.VerifyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SslDomain.VerifyMode VERIFY_PEER
VERIFY_PEER_NAME for this instead.public static final SslDomain.VerifyMode VERIFY_PEER_NAME
Transport.ssl(SslDomain, SslPeerDetails).public static final SslDomain.VerifyMode ANONYMOUS_PEER
public static SslDomain.VerifyMode[] values()
for (SslDomain.VerifyMode c : SslDomain.VerifyMode.values()) System.out.println(c);
public static SslDomain.VerifyMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null