Class X509CRLEntry

java.lang.Object
java.security.cert.X509CRLEntry
All Implemented Interfaces:
X509Extension
Direct Known Subclasses:
OpenSSLX509CRLEntry, X509CRLEntryImpl, X509CRLEntryObject

public abstract class X509CRLEntry
extends Object
implements X509Extension
Abstract base class for entries in a certificate revocation list (CRL).
See Also:
X509CRL
  • Constructor Details

    • X509CRLEntry

      public X509CRLEntry()
      Creates a new X509CRLEntry instance.
  • Method Details

    • equals

      public boolean equals​(Object other)
      Returns whether the specified object equals to this instance.
      Overrides:
      equals in class Object
      Parameters:
      other - the object to compare.
      Returns:
      true if the specified object equals to this instance, otherwise false.
      See Also:
      Object.hashCode()
    • hashCode

      public int hashCode()
      Returns the hashcode of this instance.
      Overrides:
      hashCode in class Object
      Returns:
      the hashcode of this instance.
      See Also:
      Object.equals(java.lang.Object)
    • getEncoded

      public abstract byte[] getEncoded() throws CRLException
      Returns this entry in ASN.1 DER encoded form.
      Returns:
      the encoded form of this entry.
      Throws:
      CRLException - if encoding fails.
    • getSerialNumber

      public abstract BigInteger getSerialNumber()
      Returns the serial number of the revoked certificate.
      Returns:
      the serial number of the revoked certificate.
    • getCertificateIssuer

      public X500Principal getCertificateIssuer()
      Returns the issuer of the revoked certificate.
      Returns:
      the issuer of the revoked certificate, or null if the issuer is equal to the CRL issuer.
    • getRevocationDate

      public abstract Date getRevocationDate()
      Returns the date when the certificate is revoked.
      Returns:
      the date when the certificate is revoked.
    • hasExtensions

      public abstract boolean hasExtensions()
      Returns whether this CRL entry has extensions.
      Returns:
      true is this CRL entry has extensions, otherwise false.
    • toString

      public abstract String toString()
      Returns a string representation of this instance.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this instance.