Skip to content

Most visited

Recently visited

navigation

X509CRLEntry

public abstract class X509CRLEntry
extends Object implements X509Extension

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


Abstract class for a revoked certificate in a CRL (Certificate Revocation List). The ASN.1 definition for revokedCertificates is:

 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 }

See also:

Summary

Public constructors

X509CRLEntry()

Public methods

boolean equals(Object other)

Compares this CRL entry for equality with the given object.

X500Principal getCertificateIssuer()

Get the issuer of the X509Certificate described by this entry.

abstract byte[] getEncoded()

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

abstract Date getRevocationDate()

Gets the revocation date from this X509CRLEntry, the revocationDate.

CRLReason getRevocationReason()

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

abstract BigInteger getSerialNumber()

Gets the serial number from this X509CRLEntry, the userCertificate.

abstract boolean hasExtensions()

Returns true if this CRL entry has extensions.

int hashCode()

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

abstract String toString()

Returns a string representation of this CRL entry.

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)

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

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 ()

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

This method is used with indirect CRLs. The default implementation always returns null. Subclasses that wish to support indirect CRLs should override it.

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 ()

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

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

getRevocationDate

Added in API level 1
Date getRevocationDate ()

Gets the revocation date from this X509CRLEntry, the revocationDate.

Returns
Date the revocation date.

getRevocationReason

Added in API level 24
CRLReason getRevocationReason ()

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

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 ()

Gets the serial number from this X509CRLEntry, the userCertificate.

Returns
BigInteger the serial number.

hasExtensions

Added in API level 1
boolean hasExtensions ()

Returns true if this CRL entry has extensions.

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

hashCode

Added in API level 1
int hashCode ()

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

Returns
int the hashcode value.

toString

Added in API level 1
String toString ()

Returns a string representation of this CRL entry.

Returns
String a string representation of this CRL entry.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.