Save This Page
Home » openjdk-7 » java » security » cert » [javadoc | source]
java.security.cert
abstract public class: X509CRLEntry [javadoc | source]
java.lang.Object
   java.security.cert.X509CRLEntry

All Implemented Interfaces:
    X509Extension

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 }

Method from java.security.cert.X509CRLEntry Summary:
equals,   getCertificateIssuer,   getEncoded,   getRevocationDate,   getRevocationReason,   getSerialNumber,   hasExtensions,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.security.cert.X509CRLEntry Detail:
 public boolean equals(Object other) 
    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.
 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.

 abstract public byte[] getEncoded() throws CRLException
    Returns the ASN.1 DER-encoded form of this CRL Entry, that is the inner SEQUENCE.
 abstract public Date getRevocationDate()
    Gets the revocation date from this X509CRLEntry, the revocationDate.
 public CRLReason getRevocationReason() 
    Returns the reason the certificate has been revoked, as specified in the Reason Code extension of this CRL entry.
 abstract public BigInteger getSerialNumber()
    Gets the serial number from this X509CRLEntry, the userCertificate.
 abstract public boolean hasExtensions()
    Returns true if this CRL entry has extensions.
 public int hashCode() 
    Returns a hashcode value for this CRL entry from its encoded form.
 abstract public String toString()
    Returns a string representation of this CRL entry.