java.security.cert

Class X509CRLEntry

public abstract class X509CRLEntry extends Object implements X509Extension

Abstract class for entries in the CRL (Certificate Revocation List). The ASN.1 definition for revokedCertificates is revokedCertificates SEQUENCE OF SEQUENCE { userCertificate CertificateSerialNumber, revocationDate Time, crlEntryExtensions Extensions OPTIONAL -- if present, shall be v2 } OPTIONAL, CertificateSerialNumber ::= INTEGER Time ::= CHOICE { utcTime UTCTime, generalTime GeneralizedTime } Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnID OBJECT IDENTIFIER, critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING } For more information consult rfc2459.

Since: JDK 1.2

Constructor Summary
X509CRLEntry()
Creates a new X509CRLEntry
Method Summary
booleanequals(Object other)
Compares this X509CRLEntry to other.
abstract byte[]getEncoded()
Gets the DER ASN.1 encoded format for this CRL Entry, the inner SEQUENCE.
abstract DategetRevocationDate()
Gets the revocation date in revocationDate for this X509CRLEntry.
abstract BigIntegergetSerialNumber()
Gets the serial number for userCertificate in this X509CRLEntry.
abstract booleanhasExtensions()
Checks if this X509CRLEntry has extensions.
inthashCode()
Returns a hash code for this X509CRLEntry in its encoded form.
abstract StringtoString()
Returns a string that represents this X509CRLEntry.

Constructor Detail

X509CRLEntry

public X509CRLEntry()
Creates a new X509CRLEntry

Method Detail

equals

public boolean equals(Object other)
Compares this X509CRLEntry to other. It checks if the object if instanceOf X509CRLEntry and then checks if the encoded form( the inner SEQUENCE) matches.

Parameters: other An Object to test for equality

Returns: true if equal, false otherwise

getEncoded

public abstract byte[] getEncoded()
Gets the DER ASN.1 encoded format for this CRL Entry, the inner SEQUENCE.

Returns: byte array containg encoded form

Throws: CRLException if an error occurs

getRevocationDate

public abstract Date getRevocationDate()
Gets the revocation date in revocationDate for this X509CRLEntry.

Returns: the revocation date for this X509CRLEntry.

getSerialNumber

public abstract BigInteger getSerialNumber()
Gets the serial number for userCertificate in this X509CRLEntry.

Returns: the serial number for this X509CRLEntry.

hasExtensions

public abstract boolean hasExtensions()
Checks if this X509CRLEntry has extensions.

Returns: true if it has extensions, false otherwise

hashCode

public int hashCode()
Returns a hash code for this X509CRLEntry in its encoded form.

Returns: A hash code of this class

toString

public abstract String toString()
Returns a string that represents this X509CRLEntry.

Returns: a string representing this X509CRLEntry.