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
| 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. |
public X509CRLEntry()
Creates a new X509CRLEntry
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
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
public abstract Date getRevocationDate()
Gets the revocation date in
revocationDate for
this X509CRLEntry.
Returns: the revocation date for this X509CRLEntry.
public abstract BigInteger getSerialNumber()
Gets the serial number for
userCertificate in
this X509CRLEntry.
Returns: the serial number for this X509CRLEntry.
public abstract boolean hasExtensions()
Checks if this X509CRLEntry has extensions.
Returns: true if it has extensions, false otherwise
public int hashCode()
Returns a hash code for this X509CRLEntry in its encoded
form.
Returns: A hash code of this class
public abstract String toString()
Returns a string that represents this X509CRLEntry.
Returns: a string representing this X509CRLEntry.