X509CRLEntry

<p>Abstract class for a revoked certificate in a CRL (Certificate Revocation List).

The ASN.1 definition for <em>revokedCertificates</em> is: <pre> revokedCertificates SEQUENCE OF SEQUENCE { userCertificate CertificateSerialNumber, revocationDate ChoiceOfTime, crlEntryExtensions Extensions OPTIONAL -- if present, must be v2 } OPTIONAL

CertificateSerialNumber ::= INTEGER

Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension

Extension ::= SEQUENCE { extnId OBJECT IDENTIFIER, critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING -- contains a DER encoding of a value -- of the type registered for use with -- the extnId object identifier value } </pre>

@see X509CRL @see X509Extension

@author Hemma Prafullchandra

Members

Functions

getCertificateIssuer
X500Principal getCertificateIssuer()

Get the issuer of the X509Certificate described by this entry. If the certificate issuer is also the CRL issuer, this method returns null.

getEncoded
byte[] getEncoded()

Returns the ASN.1 DER-encoded form of this CRL Entry, that is the inner SEQUENCE.

getRevocationDate
Date getRevocationDate()

Gets the revocation date from this X509CRLEntry, the <em>revocationDate</em>.

getRevocationReason
CRLReason getRevocationReason()

Returns the reason the certificate has been revoked, as specified in the Reason Code extension of this CRL entry.

getSerialNumber
BigInt getSerialNumber()

Gets the serial number from this X509CRLEntry, the <em>userCertificate</em>.

hasExtensions
bool hasExtensions()

Returns true if this CRL entry has extensions.

opEquals
bool opEquals(Object other)

Compares this CRL entry for equality with the given object. If the {@code other} object is an {@code instanceof} {@code X509CRLEntry}, then its encoded form (the inner SEQUENCE) is retrieved and compared with the encoded form of this CRL entry.

toHash
size_t toHash()

Returns a hashcode value for this CRL entry from its encoded form.

toString
string toString()

Returns a string representation of this CRL entry.

Inherited Members

From X509Extension

hasUnsupportedCriticalExtension
bool hasUnsupportedCriticalExtension()

Check if there is a critical extension that is not supported.

getCriticalExtensionOIDs
Set!string getCriticalExtensionOIDs()

Gets a Set of the OID strings for the extension(s) marked CRITICAL in the certificate/CRL managed by the object implementing this interface.

getNonCriticalExtensionOIDs
Set!string getNonCriticalExtensionOIDs()

Gets a Set of the OID strings for the extension(s) marked NON-CRITICAL in the certificate/CRL managed by the object implementing this interface.

getExtensionValue
byte[] getExtensionValue(string oid)

Gets the DER-encoded OCTET string for the extension value (<em>extnValue</em>) identified by the passed-in {@code oid} string. The {@code oid} string is represented by a set of nonnegative whole numbers separated by periods.

Meta