Most visited

Recently visited

Added in API level 1

X509CRLEntry

public abstract class X509CRLEntry
extends Object implements X509Extension

java.lang.Object
   ↳ java.security.cert.X509CRLEntry


CRL(证书吊销列表)中已吊销证书的抽象类。 撤销证书的ASN.1定义是:

 revokedCertificates    SEQUENCE OF SEQUENCE  {
     userCertificate    CertificateSerialNumber,
     revocationDate     ChoiceOfTime,
     crlEntryExtensions Extensions OPTIONAL
                        -- if present, must be v2
 }  OPTIONAL

CertificateSerialNumber :: = INTEGER

扩展:: =扩展的SEQUENCE SIZE(1..MAX)

Extension :: = SEQUENCE {extnId OBJECT IDENTIFIER,批注BOOLEAN DEFAULT FALSE,extnValue OCTET STRING - 包含一个值的DER编码 - 注册的类型用于 - extnId对象标识符值}

也可以看看:

Summary

Public constructors

X509CRLEntry()

Public methods

boolean equals(Object other)

将此CRL条目与给定对象进行比较来进行比较。

X500Principal getCertificateIssuer()

获取本条目描述的X509Certificate的颁发者。

abstract byte[] getEncoded()

返回此CRL条目的ASN.1 DER编码形式,即内部SEQUENCE。

abstract Date getRevocationDate()

获得此X509CRLEntry的 revocationDate撤销日期。

CRLReason getRevocationReason()

按照此CRL条目的原因代码扩展中指定的内容返回证书已被撤销的原因。

abstract BigInteger getSerialNumber()

从此X509CRLEntry获取序列号 userCertificate

abstract boolean hasExtensions()

如果此CRL条目具有扩展名,则返回true。

int hashCode()

从其编码形式返回此CRL条目的散列码值。

abstract String toString()

返回此CRL条目的字符串表示形式。

Inherited methods

From class java.lang.Object
From interface java.security.cert.X509Extension

Public constructors

X509CRLEntry

Added in API level 1
X509CRLEntry ()

Public methods

equals

Added in API level 1
boolean equals (Object other)

将此CRL条目与给定对象进行比较来进行比较。 如果other对象是instanceof X509CRLEntry ,则检索其编码形式(内部SEQUENCE),并将其与此CRL条目的编码形式进行比较。

Parameters
other Object: the object to test for equality with this CRL entry.
Returns
boolean true iff the encoded forms of the two CRL entries match, false otherwise.

getCertificateIssuer

Added in API level 1
X500Principal getCertificateIssuer ()

获取本条目描述的X509Certificate的颁发者。 如果证书颁发者也是CRL颁发者,则此方法返回null。

该方法与间接CRL一起使用。 默认实现总是返回null。 希望支持间接CRL的子类应该覆盖它。

Returns
X500Principal the issuer of the X509Certificate described by this entry or null if it is issued by the CRL issuer.

getEncoded

Added in API level 1
byte[] getEncoded ()

返回此CRL条目的ASN.1 DER编码形式,即内部SEQUENCE。

Returns
byte[] the encoded form of this certificate
Throws
CRLException if an encoding error occurs.

getRevocationDate

Added in API level 1
Date getRevocationDate ()

获得此X509CRLEntry的 revocationDate撤销日期。

Returns
Date the revocation date.

getRevocationReason

Added in API level 24
CRLReason getRevocationReason ()

按照此CRL条目的原因代码扩展中指定的内容返回证书已被撤销的原因。

Returns
CRLReason the reason the certificate has been revoked, or null if this CRL entry does not have a Reason Code extension

getSerialNumber

Added in API level 1
BigInteger getSerialNumber ()

从此X509CRLEntry获取序列号 userCertificate

Returns
BigInteger the serial number.

hasExtensions

Added in API level 1
boolean hasExtensions ()

如果此CRL条目具有扩展名,则返回true。

Returns
boolean true if this entry has extensions, false otherwise.

hashCode

Added in API level 1
int hashCode ()

从其编码形式返回此CRL条目的散列码值。

Returns
int the hashcode value.

toString

Added in API level 1
String toString ()

返回此CRL条目的字符串表示形式。

Returns
String a string representation of this CRL entry.

Hooray!