java.security.cert
Class X509CRLEntry

java.lang.Object
  extended by java.security.cert.X509CRLEntry
All Implemented Interfaces:
X509Extension

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
 boolean equals(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  Date getRevocationDate()
          Gets the revocation date in revocationDate for this X509CRLEntry.
abstract  BigInteger getSerialNumber()
          Gets the serial number for userCertificate in this X509CRLEntry.
abstract  boolean hasExtensions()
          Checks if this X509CRLEntry has extensions.
 int hashCode()
          Returns a hash code for this X509CRLEntry in its encoded form.
abstract  String toString()
          Returns a string that represents this X509CRLEntry.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.cert.X509Extension
getCriticalExtensionOIDs, getExtensionValue, getNonCriticalExtensionOIDs, hasUnsupportedCriticalExtension
 

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.

Overrides:
equals in class Object
Parameters:
other - An Object to test for equality
Returns:
true if equal, false otherwise
See Also:
Object.hashCode()

hashCode

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

Overrides:
hashCode in class Object
Returns:
A hash code of this class
See Also:
Object.equals(Object), System.identityHashCode(Object)

getEncoded

public abstract byte[] getEncoded()
                           throws CRLException
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

getSerialNumber

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

Returns:
the serial number for this X509CRLEntry.

getRevocationDate

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

Returns:
the revocation date for this X509CRLEntry.

hasExtensions

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

Returns:
true if it has extensions, false otherwise

toString

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

Overrides:
toString in class Object
Returns:
a string representing this X509CRLEntry.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)