public enum ClientAuth extends java.lang.Enum<ClientAuth>
SSLEngine
with respect to client authentication.
This configuration item really only applies when building the server-side SslContext
.枚举常量和说明 |
---|
NONE
Indicates that the
SSLEngine will not request client authentication. |
OPTIONAL
Indicates that the
SSLEngine will request client authentication. |
REQUIRE
Indicates that the
SSLEngine will *require* client authentication. |
限定符和类型 | 方法和说明 |
---|---|
static ClientAuth |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ClientAuth[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ClientAuth NONE
SSLEngine
will not request client authentication.public static final ClientAuth OPTIONAL
SSLEngine
will request client authentication.public static final ClientAuth REQUIRE
SSLEngine
will *require* client authentication.public static ClientAuth[] values()
for (ClientAuth c : ClientAuth.values()) System.out.println(c);
public static ClientAuth valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值