This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


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 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 }


Constructor Summary

          
 
Method Summary
 boolean
equals(Object other)

          Compares this CRL entry for equality with the given object.
 X500Principal

          Get the issuer of the X509Certificate described by this entry.
abstract byte[]

          Returns the ASN.1 DER-encoded form of this CRL Entry, that is the inner SEQUENCE.
abstract Date

          Gets the revocation date from this X509CRLEntry, the revocationDate.
abstract BigInteger

          Gets the serial number from this X509CRLEntry, the userCertificate.
abstract boolean

          Returns true if this CRL entry has extensions.
 int

          Returns a hashcode value for this CRL entry from its encoded form.
abstract String

          Returns a string representation of this CRL entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509CRLEntry

public X509CRLEntry()
Method Detail

equals

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.

Overrides:
equals in class Object
Parameters:
other - the object to test for equality with this CRL entry.
Returns:
true iff the encoded forms of the two CRL entries match, false otherwise.

getCertificateIssuer

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.

Returns:
the issuer of the X509Certificate described by this entry or null if it is issued by the CRL issuer.

getEncoded

public abstract byte[] getEncoded()
                           throws CRLException
Returns the ASN.1 DER-encoded form of this CRL Entry, that is the inner SEQUENCE.

Returns:
the encoded form of this certificate
Throws:
CRLException - if an encoding error occurs.

getRevocationDate

public abstract Date getRevocationDate()
Gets the revocation date from this X509CRLEntry, the revocationDate.

Returns:
the revocation date.

getSerialNumber

public abstract BigInteger getSerialNumber()
Gets the serial number from this X509CRLEntry, the userCertificate.

Returns:
the serial number.

hasExtensions

public abstract boolean hasExtensions()
Returns true if this CRL entry has extensions.

Returns:
true if this entry has extensions, false otherwise.

hashCode

public int hashCode()
Returns a hashcode value for this CRL entry from its encoded form.

Overrides:
hashCode in class Object
Returns:
the hashcode value.

toString

public abstract String toString()
Returns a string representation of this CRL entry.

Overrides:
toString in class Object
Returns:
a string representation of this CRL entry.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.