java.security.cert
Class X509CRLEntry

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.cert.X509CRLEntry
All Implemented Interfaces:
X509Extension sample code for java.security.cert.X509Extension definition code for java.security.cert.X509Extension

public abstract class X509CRLEntry
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements X509Extension sample code for java.security.cert.X509Extension definition code for java.security.cert.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 }

See Also:
X509CRL sample code for java.security.cert.X509CRL definition code for java.security.cert.X509CRL , X509Extension sample code for java.security.cert.X509Extension definition code for java.security.cert.X509Extension

Constructor Summary
X509CRLEntry sample code for java.security.cert.X509CRLEntry.X509CRLEntry() definition code for java.security.cert.X509CRLEntry.X509CRLEntry() ()
           
 
Method Summary
 boolean equals sample code for java.security.cert.X509CRLEntry.equals(java.lang.Object) definition code for java.security.cert.X509CRLEntry.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  other)
          Compares this CRL entry for equality with the given object.
 X500Principal sample code for javax.security.auth.x500.X500Principal definition code for javax.security.auth.x500.X500Principal getCertificateIssuer sample code for java.security.cert.X509CRLEntry.getCertificateIssuer() definition code for java.security.cert.X509CRLEntry.getCertificateIssuer() ()
          Get the issuer of the X509Certificate described by this entry.
abstract  byte[] getEncoded sample code for java.security.cert.X509CRLEntry.getEncoded() definition code for java.security.cert.X509CRLEntry.getEncoded() ()
          Returns the ASN.1 DER-encoded form of this CRL Entry, that is the inner SEQUENCE.
abstract  Date sample code for java.util.Date definition code for java.util.Date getRevocationDate sample code for java.security.cert.X509CRLEntry.getRevocationDate() definition code for java.security.cert.X509CRLEntry.getRevocationDate() ()
          Gets the revocation date from this X509CRLEntry, the revocationDate.
abstract  BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getSerialNumber sample code for java.security.cert.X509CRLEntry.getSerialNumber() definition code for java.security.cert.X509CRLEntry.getSerialNumber() ()
          Gets the serial number from this X509CRLEntry, the userCertificate.
abstract  boolean hasExtensions sample code for java.security.cert.X509CRLEntry.hasExtensions() definition code for java.security.cert.X509CRLEntry.hasExtensions() ()
          Returns true if this CRL entry has extensions.
 int hashCode sample code for java.security.cert.X509CRLEntry.hashCode() definition code for java.security.cert.X509CRLEntry.hashCode() ()
          Returns a hashcode value for this CRL entry from its encoded form.
abstract  String sample code for java.lang.String definition code for java.lang.String toString sample code for java.security.cert.X509CRLEntry.toString() definition code for java.security.cert.X509CRLEntry.toString() ()
          Returns a string representation of this CRL entry.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface java.security.cert.X509Extension sample code for java.security.cert.X509Extension definition code for java.security.cert.X509Extension
getCriticalExtensionOIDs sample code for java.security.cert.X509Extension.getCriticalExtensionOIDs() definition code for java.security.cert.X509Extension.getCriticalExtensionOIDs() , getExtensionValue sample code for java.security.cert.X509Extension.getExtensionValue(java.lang.String) definition code for java.security.cert.X509Extension.getExtensionValue(java.lang.String) , getNonCriticalExtensionOIDs sample code for java.security.cert.X509Extension.getNonCriticalExtensionOIDs() definition code for java.security.cert.X509Extension.getNonCriticalExtensionOIDs() , hasUnsupportedCriticalExtension sample code for java.security.cert.X509Extension.hasUnsupportedCriticalExtension() definition code for java.security.cert.X509Extension.hasUnsupportedCriticalExtension()
 

Constructor Detail

X509CRLEntry sample code for java.security.cert.X509CRLEntry() definition code for java.security.cert.X509CRLEntry()

public X509CRLEntry()
Method Detail

equals sample code for java.security.cert.X509CRLEntry.equals(java.lang.Object) definition code for java.security.cert.X509CRLEntry.equals(java.lang.Object)

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.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 sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.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.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for java.security.cert.X509CRLEntry.hashCode() definition code for java.security.cert.X509CRLEntry.hashCode()

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

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
the hashcode value.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

getEncoded sample code for java.security.cert.X509CRLEntry.getEncoded() definition code for java.security.cert.X509CRLEntry.getEncoded()

public abstract byte[] getEncoded()
                           throws CRLException sample code for java.security.cert.CRLException definition code for java.security.cert.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 sample code for java.security.cert.CRLException definition code for java.security.cert.CRLException - if an encoding error occurs.

getSerialNumber sample code for java.security.cert.X509CRLEntry.getSerialNumber() definition code for java.security.cert.X509CRLEntry.getSerialNumber()

public abstract BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getSerialNumber()
Gets the serial number from this X509CRLEntry, the userCertificate.

Returns:
the serial number.

getCertificateIssuer sample code for java.security.cert.X509CRLEntry.getCertificateIssuer() definition code for java.security.cert.X509CRLEntry.getCertificateIssuer()

public X500Principal sample code for javax.security.auth.x500.X500Principal definition code for javax.security.auth.x500.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.
Since:
1.5

getRevocationDate sample code for java.security.cert.X509CRLEntry.getRevocationDate() definition code for java.security.cert.X509CRLEntry.getRevocationDate()

public abstract Date sample code for java.util.Date definition code for java.util.Date  getRevocationDate()
Gets the revocation date from this X509CRLEntry, the revocationDate.

Returns:
the revocation date.

hasExtensions sample code for java.security.cert.X509CRLEntry.hasExtensions() definition code for java.security.cert.X509CRLEntry.hasExtensions()

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

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

toString sample code for java.security.cert.X509CRLEntry.toString() definition code for java.security.cert.X509CRLEntry.toString()

public abstract String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a string representation of this CRL entry.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of this CRL entry.