Class CRL

java.lang.Object
java.security.cert.CRL
Direct Known Subclasses:
X509CRL

public abstract class CRL
extends Object
This class represents Certificate Revocation Lists (CRLs) maintained by a certificate authority. They are used to indicate that a given Certificate has expired and consequently has become invalid.
See Also:
CertificateFactory
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected CRL​(String type)
    Creates a new certificate revocation list of the specified type.
  • Method Summary

    Modifier and Type Method Description
    String getType()
    Returns the type of this CRL.
    abstract boolean isRevoked​(Certificate cert)
    Returns whether the specified certificate is revoked by this CRL.
    abstract String toString()
    Returns the string representation of this instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CRL

      protected CRL​(String type)
      Creates a new certificate revocation list of the specified type.
      Parameters:
      type - the type for the CRL.
  • Method Details

    • getType

      public final String getType()
      Returns the type of this CRL.
      Returns:
      the type of this CRL.
    • isRevoked

      public abstract boolean isRevoked​(Certificate cert)
      Returns whether the specified certificate is revoked by this CRL.
      Parameters:
      cert - the certificate to check.
      Returns:
      true if the certificate is revoked by this CRL, otherwise false.
    • toString

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