public class CertificateRevokedException extends CertificateException
CertificateRevokedException
包含关于撤销证书的其他信息,如日期,证书被吊销,撤销的原因。
CertPathValidatorException
,
Serialized Form
Constructor and Description |
---|
CertificateRevokedException(Date revocationDate, CRLReason reason, X500Principal authority, Map<String,Extension> extensions)
构建了一个
CertificateRevokedException 与指定的撤销日期、原因代码、机构名称、和扩展。
|
Modifier and Type | Method and Description |
---|---|
X500Principal |
getAuthorityName()
返回签名证书的撤销状态信息的权限的名称。
|
Map<String,Extension> |
getExtensions()
返回Map扩展包含X.509证书撤销的附加信息,如无效日期延长。
|
Date |
getInvalidityDate()
返回无效的日期,在这
CertificateRevokedException 失效日期延长的规定。
|
String |
getMessage()
返回该错误的详细信息的字符串。
|
Date |
getRevocationDate()
返回证书被吊销的日期。
|
CRLReason |
getRevocationReason()
返回证书被吊销的原因。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CertificateRevokedException(Date revocationDate, CRLReason reason, X500Principal authority, Map<String,Extension> extensions)
CertificateRevokedException
与指定的撤销日期、原因代码、机构名称、和扩展。
revocationDate
-日期的证书被撤销。复制的日期以防止随后的修改。
reason
-撤销原因
extensions
-Map的X.509证书的扩展。每个关键是OID字符串映射到相应的扩展。Map被复制以防止随后的修改。
authority
-代表签发的证书的吊销状态信息的权威名称
X500Principal
NullPointerException
-如果
revocationDate
,
reason
,
authority
,或
extensions
是
null
public Date getRevocationDate()
public CRLReason getRevocationReason()
public X500Principal getAuthorityName()
X500Principal
public Date getInvalidityDate()
CertificateRevokedException
失效日期延长的规定。无效的日期,它是已知或怀疑私钥泄露或是证书,否则作废。这要求执行
getExtensions()
检查返回的Map为无效日期延长OID入口(“2.5.29.24”)。如果找到,则返回扩展的失效日期;否则无效。每次调用一个新的日期对象,以防止后续的修改。
null
如果未指定
public Map<String,Extension> getExtensions()
public String getMessage()
Throwable
getMessage
方法重写,继承类
Throwable
Throwable
实例的详细信息的字符串(可以
null
)。
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.