public class CertificateRevokedException
extends CertificateException
| java.lang.Object | |||||
| java.lang.Throwable | |||||
| java.lang.Exception | |||||
| java.security.GeneralSecurityException | |||||
| java.security.cert.CertificateException | |||||
| java.security.cert.CertificateRevokedException | |||||
指示X.509证书的异常被吊销。 CertificateRevokedException包含有关撤销证书的其他信息,例如证书被吊销的日期及其被吊销的原因。
也可以看看:
Public constructors |
|
|---|---|
CertificateRevokedException(Date revocationDate, CRLReason reason, X500Principal authority, Map<String, Extension> extensions) 使用指定的吊销日期,原因码,机构名称和扩展地图构造一个 |
|
公共方法(Public methods) |
|
|---|---|
X500Principal |
getAuthorityName() 返回签署证书吊销状态信息的权限的名称。 |
Map<String, Extension> |
getExtensions() 返回包含有关撤销证书的附加信息的X.509扩展的映射,例如无效日期扩展。 |
Date |
getInvalidityDate() 返回无效日期,如本 |
String |
getMessage() 返回此throwable的详细消息字符串。 |
Date |
getRevocationDate() 返回证书被吊销的日期。 |
CRLReason |
getRevocationReason() 返回证书被撤销的原因。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
CertificateRevokedException (Date revocationDate, CRLReason reason, X500Principal authority, Map<String, Extension> extensions)
使用指定的吊销日期,原因码,机构名称和扩展地图构造一个 CertificateRevokedException 。
| 参数(Parameters) | |
|---|---|
revocationDate |
Date: the date on which the certificate was revoked. The date is copied to protect against subsequent modification. |
reason |
CRLReason: the revocation reason |
authority |
X500Principal: the X500Principal that represents the name of the authority that signed the certificate's revocation status information |
extensions |
Map: a map of X.509 Extensions. Each key is an OID String that maps to the corresponding Extension. The map is copied to prevent subsequent modification. |
| 抛出异常(Throws) | |
|---|---|
NullPointerException |
if revocationDate, reason, authority, or extensions is null |
X500Principal getAuthorityName ()
返回签署证书吊销状态信息的权限的名称。
| 返回(Returns) | |
|---|---|
X500Principal |
the X500Principal that represents the name of the authority that signed the certificate's revocation status information |
Map<String, Extension> getExtensions ()
返回包含有关撤销证书的附加信息的X.509扩展的映射,例如无效日期扩展。 每个键都是映射到相应扩展名的OID字符串。
| 返回(Returns) | |
|---|---|
Map<String, Extension> |
an unmodifiable map of X.509 extensions, or an empty map if there are no extensions |
Date getInvalidityDate ()
返回无效日期,如此CertificateRevokedException的无效日期延长中CertificateRevokedException 。 无效日期是指知道或怀疑私钥泄露或证书无效的日期。 该实现调用getExtensions()并检查返回的映射,以查找无效日期扩展OID(“2.5.29.24”)的条目。 如果找到,它将在扩展中返回无效日期; 否则为空。 每次调用该方法时都会返回一个新的Date对象,以防止后续修改。
| 返回(Returns) | |
|---|---|
Date |
the invalidity date, or null if not specified |
String getMessage ()
返回此throwable的详细消息字符串。
| 返回(Returns) | |
|---|---|
String |
the detail message string of this Throwable instance (which may be null). |
Date getRevocationDate ()
返回证书被吊销的日期。 每次调用该方法时都会返回一个新副本,以防止后续修改。
| 返回(Returns) | |
|---|---|
Date |
the revocation date |
CRLReason getRevocationReason ()
返回证书被撤销的原因。
| 返回(Returns) | |
|---|---|
CRLReason |
the revocation reason |