java.security.cert
Class X509CRLEntry
java.lang.Object
|
+--java.security.cert.X509CRLEntry
All Implemented Interfaces:
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:Author:X509CRLEntry
public X509CRLEntry()
Creates a new X509CRLEntry
equals
public boolean equals(java.lang.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:
Returns:
- true if equal, false otherwise
getEncoded
public byte[] getEncoded()
Gets the DER ASN.1 encoded format for this CRL Entry,
the inner SEQUENCE.
Returns:
- byte array containg encoded form
Throws:
getRevocationDate
public Date getRevocationDate()
Gets the revocation date in revocationDate for
this X509CRLEntry.
Returns:
- the revocation date for this X509CRLEntry.
getSerialNumber
public BigInteger getSerialNumber()
Gets the serial number for userCertificate in
this X509CRLEntry.
Returns:
- the serial number for this X509CRLEntry.
hasExtensions
public 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 String toString()
Returns a string that represents this X509CRLEntry.
Returns:
- a string representing this X509CRLEntry.