Most visited

Recently visited

Added in API level 24

CertificateRevokedException

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包含有关撤销证书的其他信息,例如证书被吊销的日期及其被吊销的原因。

也可以看看:

Summary

Public constructors

CertificateRevokedException(Date revocationDate, CRLReason reason, X500Principal authority, Map<StringExtension> extensions)

使用指定的吊销日期,原因码,机构名称和扩展地图构造一个 CertificateRevokedException

Public methods

X500Principal getAuthorityName()

返回签署证书吊销状态信息的权限的名称。

Map<StringExtension> getExtensions()

返回包含有关撤销证书的附加信息的X.509扩展的映射,例如无效日期扩展。

Date getInvalidityDate()

返回无效日期,如本 CertificateRevokedException的无效日期延长中 CertificateRevokedException

String getMessage()

返回此throwable的详细消息字符串。

Date getRevocationDate()

返回证书被吊销的日期。

CRLReason getRevocationReason()

返回证书被撤销的原因。

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

CertificateRevokedException

Added in API level 24
CertificateRevokedException (Date revocationDate, 
                CRLReason reason, 
                X500Principal authority, 
                Map<StringExtension> 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

Public methods

getAuthorityName

Added in API level 24
X500Principal getAuthorityName ()

返回签署证书吊销状态信息的权限的名称。

Returns
X500Principal the X500Principal that represents the name of the authority that signed the certificate's revocation status information

getExtensions

Added in API level 24
Map<StringExtension> getExtensions ()

返回包含有关撤销证书的附加信息的X.509扩展的映射,例如无效日期扩展。 每个键都是映射到相应扩展名的OID字符串。

Returns
Map<StringExtension> an unmodifiable map of X.509 extensions, or an empty map if there are no extensions

getInvalidityDate

Added in API level 24
Date getInvalidityDate ()

返回无效日期,如此CertificateRevokedException的无效日期延长中CertificateRevokedException 无效日期是指知道或怀疑私钥泄露或证书无效的日期。 该实现调用getExtensions()并检查返回的映射,以查找无效日期扩展OID(“2.5.29.24”)的条目。 如果找到,它将在扩展中返回无效日期; 否则为空。 每次调用该方法时都会返回一个新的Date对象,以防止后续修改。

Returns
Date the invalidity date, or null if not specified

getMessage

Added in API level 24
String getMessage ()

返回此throwable的详细消息字符串。

Returns
String the detail message string of this Throwable instance (which may be null).

getRevocationDate

Added in API level 24
Date getRevocationDate ()

返回证书被吊销的日期。 每次调用该方法时都会返回一个新副本,以防止后续修改。

Returns
Date the revocation date

getRevocationReason

Added in API level 24
CRLReason getRevocationReason ()

返回证书被撤销的原因。

Returns
CRLReason the revocation reason

Hooray!