Top Description Constructors Methods
java.security.cert

public abstract Class X509CRLEntry

extends Object
implements X509Extension
Class Inheritance
All Implemented Interfaces
java.security.cert.X509Extension
Known Direct Subclasses
sun.security.x509.X509CRLEntryImpl
Imports
java.math.BigInteger, java.util.Arrays, .Date, javax.security.auth.x500.X500Principal, sun.security.x509.X509CRLEntryImpl

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
}
Author
Hemma Prafullchandra
Since
1.2
See Also
X509CRL, X509Extension

Constructor Summary

AccessConstructor and Description
public
X509CRLEntry()

Constructor for subclasses to call.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true iff the encoded forms of the two CRL entries match, false otherwise.
equals
(Object
the object to test for equality with this CRL entry.
other
)

Overrides java.lang.Object.equals.

Compares this CRL entry for equality with the given object.
public X500Principal

Returns:

the issuer of the X509Certificate described by this entry or null if it is issued by the CRL issuer.
getCertificateIssuer
()

Get the issuer of the X509Certificate described by this entry.

public abstract byte[]

Returns:

the encoded form of this certificate
getEncoded
()

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

public abstract Date

Returns:

the revocation date.
getRevocationDate
()

Gets the revocation date from this X509CRLEntry, the revocationDate.

public CRLReason

Returns:

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

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

public abstract BigInteger

Returns:

the serial number.
getSerialNumber
()

Gets the serial number from this X509CRLEntry, the userCertificate.

public abstract boolean

Returns:

true if this entry has extensions, false otherwise.
hasExtensions
()

Returns true if this CRL entry has extensions.

public int

Returns:

the hashcode value for this CRL entry from its encoded form
hashCode
()

Overrides java.lang.Object.hashCode.

Returns the hashcode value for this CRL entry from its encoded form.
public abstract String

Returns:

a string representation of this CRL entry.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this CRL entry.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Constructor Detail

X509CRLEntryback to summary
public X509CRLEntry()

Constructor for subclasses to call.

Method Detail

equalsback to summary
public boolean equals(Object other)

Overrides java.lang.Object.equals.

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.

Annotations
@Override
getCertificateIssuerback to summary
public 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.

Since
1.5
getEncodedback to summary
public abstract byte[] getEncoded() throws CRLException

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

Returns:byte[]

the encoded form of this certificate

Exceptions
CRLException:
if an encoding error occurs.
getRevocationDateback to summary
public abstract Date getRevocationDate()

Gets the revocation date from this X509CRLEntry, the revocationDate.

Returns:Date

the revocation date.

getRevocationReasonback to summary
public 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

Since
1.7
getSerialNumberback to summary
public abstract BigInteger getSerialNumber()

Gets the serial number from this X509CRLEntry, the userCertificate.

Returns:BigInteger

the serial number.

hasExtensionsback to summary
public abstract boolean hasExtensions()

Returns true if this CRL entry has extensions.

Returns:boolean

true if this entry has extensions, false otherwise.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

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

Returns:int

the hashcode value for this CRL entry from its encoded form

Annotations
@Override
toStringback to summary
public abstract String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this CRL entry.

Returns:String

a string representation of this CRL entry.