X509CRLEntryImpl

<p>Abstract class for a revoked certificate in a CRL. This class is for each entry in the <code>revokedCertificates</code>, so it deals with the inner <em>SEQUENCE</em>. The ASN.1 definition for this 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>

@author Hemma Prafullchandra

Constructors

this
this(BigInteger num, Date date)

Constructs a revoked certificate entry using the given serial number and revocation date.

this
this(BigInteger num, Date date, CRLExtensions crlEntryExts)

Constructs a revoked certificate entry using the given serial number, revocation date and the entry extensions.

this
this(byte[] revokedCert)

Unmarshals a revoked certificate from its encoded form.

this
this(DerValue derValue)

Unmarshals a revoked certificate from its encoded form.

Members

Functions

compareTo
int compareTo(X509CRLEntryImpl that)

Returns all extensions for this entry in a map @return the extension map, can be empty, but not null

encode
void encode(DerOutputStream outStrm)

Encodes the revoked certificate to an output stream.

getCertificateIssuer
X500Principal getCertificateIssuer()
Undocumented in source. Be warned that the author may not have intended to support it.
getCriticalExtensionOIDs
Set!string getCriticalExtensionOIDs()

Gets a Set of the extension(s) marked CRITICAL in this X509CRLEntry. In the returned set, each extension is represented by its OID string.

getEncoded
byte[] getEncoded()

Returns the ASN.1 DER-encoded form of this CRL Entry, which corresponds to the inner SEQUENCE.

getExtension
Extension getExtension(ObjectIdentifier oid)

get an extension

getExtensionValue
byte[] getExtensionValue(string oid)

Gets the DER encoded OCTET string for the extension value (<em>extnValue</em>) identified by the passed in oid string. The <code>oid</code> string is represented by a set of positive whole number separated by ".", that means,<br> &lt;positive whole number&gt;.&lt;positive whole number&gt;.&lt;positive whole number&gt;.&lt;...&gt;

getNonCriticalExtensionOIDs
Set!string getNonCriticalExtensionOIDs()

Gets a Set of the extension(s) marked NON-CRITICAL in this X509CRLEntry. In the returned set, each extension is represented by its OID string.

getReasonCode
int getReasonCode()

get Reason Code from CRL entry.

getRevocationDate
Date getRevocationDate()

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

getRevocationReason
CRLReason getRevocationReason()

This method is the overridden implementation of the getRevocationReason method in X509CRLEntry. It is better performance-wise since it returns cached values.

getSerialNumber
BigInteger getSerialNumber()

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

hasExtensions
bool hasExtensions()

Returns true if this revoked certificate entry has extensions, otherwise false.

hasUnsupportedCriticalExtension
bool hasUnsupportedCriticalExtension()

Return true if a critical extension is found that is not supported, otherwise return false.

setCertificateIssuer
void setCertificateIssuer(X500Principal crlIssuer, X500Principal certIssuer)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()

Returns a printable string of this revoked certificate.

Static functions

toImpl
X509CRLEntryImpl toImpl(X509CRLEntry entry)

Utility method to convert an arbitrary instance of X509CRLEntry to a X509CRLEntryImpl. Does a cast if possible, otherwise reparses the encoding.

Inherited Members

From X509CRLEntry

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.

getEncoded
byte[] getEncoded()

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

getSerialNumber
BigInteger getSerialNumber()

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

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.

getRevocationDate
Date getRevocationDate()

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

hasExtensions
bool hasExtensions()

Returns true if this CRL entry has extensions.

getRevocationReason
CRLReason getRevocationReason()

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

getRevocationReason
CRLReason getRevocationReason(X509CRLEntry crlEntry)

This static method is the default implementation of the getRevocationReason method in X509CRLEntry.

Meta