Serializable, Comparable<PKIXRevocationChecker.Option>public static enum PKIXRevocationChecker.Option extends Enum<PKIXRevocationChecker.Option>
| 枚举常量 | 说明 |
|---|---|
NO_FALLBACK |
Disable the fallback mechanism.
|
ONLY_END_ENTITY |
Only check the revocation status of end-entity certificates.
|
PREFER_CRLS |
Prefer CRLs to OSCP.
|
SOFT_FAIL |
Allow revocation check to succeed if the revocation status cannot be
determined for one of the following reasons:
The CRL or OCSP response cannot be obtained because of a
network error.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static PKIXRevocationChecker.Option |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static PKIXRevocationChecker.Option[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (PKIXRevocationChecker.Option c : PKIXRevocationChecker.Option.values()) System.out.println(c); |
public static final PKIXRevocationChecker.Option ONLY_END_ENTITY
public static final PKIXRevocationChecker.Option PREFER_CRLS
public static final PKIXRevocationChecker.Option NO_FALLBACK
public static final PKIXRevocationChecker.Option SOFT_FAIL
NO_FALLBACK option is set, the revocation check is
allowed to succeed only if both mechanisms fail under one of the
conditions as stated above.
Exceptions that cause the network errors are ignored but can be
later retrieved by calling the
getSoftFailExceptions method.public static PKIXRevocationChecker.Option[] values()
for (PKIXRevocationChecker.Option c : PKIXRevocationChecker.Option.values()) System.out.println(c);
public static PKIXRevocationChecker.Option valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值