@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public enum SSLClientAuthPolicy extends Enum<SSLClientAuthPolicy>
Enum Constant and Description |
---|
DISABLED
Indicates that the server will not request a certificate from the client.
|
OPTIONAL
Indicates that the server will request a certificate from the
client but will not require that one be provided.
|
REQUIRED
Indicates that the server will request a certificate from the
client and will reject any connection attempt in which the client
did not provide one.
|
Modifier and Type | Method and Description |
---|---|
static SSLClientAuthPolicy |
policyForName(String policyName)
Retrieves the SSL client authentication policy for the specified
name.
|
String |
toString()
Retrieves the human-readable name for this SSL client auth
policy.
|
static SSLClientAuthPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SSLClientAuthPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SSLClientAuthPolicy DISABLED
public static final SSLClientAuthPolicy OPTIONAL
public static final SSLClientAuthPolicy REQUIRED
public static SSLClientAuthPolicy[] values()
for (SSLClientAuthPolicy c : SSLClientAuthPolicy.values()) System.out.println(c);
public static SSLClientAuthPolicy 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 nullpublic static SSLClientAuthPolicy policyForName(String policyName)
policyName
- The name of the SSL client authentication
policy to retrieve.null
if the provided value is not the name
of a valid client authentication policy.public String toString()
toString
in class Enum<SSLClientAuthPolicy>
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.