java.lang.Object
eu.europa.esig.dss.model.x509.Token
eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken
All Implemented Interfaces:
eu.europa.esig.dss.model.identifier.IdentifierBasedObject, Serializable

public class CRLToken extends RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
This class represents a CRL and provides the information about its validity.
See Also:
  • Constructor Details

    • CRLToken

      public CRLToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.crl.CRLValidity crlValidity)
      The constructor to be used with the certificate which is managed by the CRL and the CRLValidity.
      Parameters:
      certificateToken - the CertificateToken which is managed by this CRL.
      crlValidity - CRLValidity containing the information about the validity of the CRL
  • Method Details

    • checkIsSignedBy

      protected eu.europa.esig.dss.enumerations.SignatureValidity checkIsSignedBy(PublicKey publicKey)
      Specified by:
      checkIsSignedBy in class eu.europa.esig.dss.model.x509.Token
    • getCertificateSource

      public RevocationCertificateSource getCertificateSource()
      Description copied from class: RevocationToken
      Returns a source of embedded into a revocation token certificates
      Specified by:
      getCertificateSource in class RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
      Returns:
      RevocationCertificateSource
    • getCrlValidity

      public eu.europa.esig.dss.crl.CRLValidity getCrlValidity()
      Returns a CRLValidity
      Returns:
      CRLValidity
    • getIssuerX500Principal

      public X500Principal getIssuerX500Principal()
      Specified by:
      getIssuerX500Principal in class eu.europa.esig.dss.model.x509.Token
    • getIssuerCertificateToken

      public eu.europa.esig.dss.model.x509.CertificateToken getIssuerCertificateToken()
      Description copied from class: RevocationToken
      Returns issuer CertificateToken
      Specified by:
      getIssuerCertificateToken in class RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
      Returns:
      issuer CertificateToken
    • getEncoded

      public byte[] getEncoded()
      Specified by:
      getEncoded in class eu.europa.esig.dss.model.x509.Token
    • getCRLStream

      public InputStream getCRLStream()
      Opens InputStream of the CRL binaries
      Returns:
      InputStream
    • isValid

      public boolean isValid()
      Indicates if the token signature is intact and the signing certificate has cRLSign key usage bit set.
      Overrides:
      isValid in class eu.europa.esig.dss.model.x509.Token
      Returns:
      true or false
    • getRevocationType

      public eu.europa.esig.dss.enumerations.RevocationType getRevocationType()
      Description copied from class: RevocationToken
      Returns the Revocation Token type (CRL or OCSP)
      Specified by:
      getRevocationType in class RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
      Returns:
      RevocationType of the token
    • getAbbreviation

      public String getAbbreviation()
      This method returns the DSS abbreviation of the CRLToken. It is used for debugging purpose.
      Overrides:
      getAbbreviation in class eu.europa.esig.dss.model.x509.Token
      Returns:
      the DSS abbreviation of the CRLToken
    • toString

      public String toString(String indentStr)
      Specified by:
      toString in class eu.europa.esig.dss.model.x509.Token