public enum PKIXReason extends Enum<PKIXReason> implements CertPathValidatorException.Reason
PKIXReason
列举了根据PKIX(RFC 3280)标准,X.509认证路径可能无效的潜在PKIX特定原因。
这些原因除了CertPathValidatorException.BasicReason
枚举之外。
Enum Constant and Description |
---|
INVALID_KEY_USAGE
证书的密钥使用无效。
|
INVALID_NAME
名称限制已被违反。
|
INVALID_POLICY
政策制约因素受到侵犯。
|
NAME_CHAINING
证书链不正确。
|
NO_TRUST_ANCHOR
找不到可接受的信托锚点。
|
NOT_CA_CERT
证书不是CA证书。
|
PATH_TOO_LONG
路径长度约束已被违反。
|
UNRECOGNIZED_CRIT_EXT
证书包含一个或多个无法识别的关键扩展。
|
Modifier and Type | Method and Description |
---|---|
static PKIXReason |
valueOf(String name)
以指定的名称返回此类型的枚举常量。
|
static PKIXReason[] |
values()
按照它们声明的顺序返回一个包含此枚举类型常量的数组。
|
public static final PKIXReason NAME_CHAINING
public static final PKIXReason INVALID_KEY_USAGE
public static final PKIXReason INVALID_POLICY
public static final PKIXReason NO_TRUST_ANCHOR
public static final PKIXReason UNRECOGNIZED_CRIT_EXT
public static final PKIXReason NOT_CA_CERT
public static final PKIXReason PATH_TOO_LONG
public static final PKIXReason INVALID_NAME
public static PKIXReason[] values()
for (PKIXReason c : PKIXReason.values())
System.out.println(c);
public static PKIXReason valueOf(String name)
name
- 要返回的枚举常量的名称。
IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
NullPointerException
- 如果参数为空
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.