public static enum TlsServerCredentials.ClientAuth extends Enum<TlsServerCredentials.ClientAuth>
Enum Constant and Description |
---|
NONE
Clients will not present any identity.
|
OPTIONAL
Clients are requested to present their identity, but clients without identities are
permitted.
|
REQUIRE
Clients are requested to present their identity, and are required to provide a valid
identity.
|
Modifier and Type | Method and Description |
---|---|
static TlsServerCredentials.ClientAuth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TlsServerCredentials.ClientAuth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TlsServerCredentials.ClientAuth NONE
public static final TlsServerCredentials.ClientAuth OPTIONAL
public static final TlsServerCredentials.ClientAuth REQUIRE
public static TlsServerCredentials.ClientAuth[] values()
for (TlsServerCredentials.ClientAuth c : TlsServerCredentials.ClientAuth.values()) System.out.println(c);
public static TlsServerCredentials.ClientAuth 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 null