Module jpms_dss_spi

Class ExternalResourcesCRLSource

java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource
eu.europa.esig.dss.spi.x509.revocation.crl.ExternalResourcesCRLSource
All Implemented Interfaces:
MultipleRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>, RevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>, Serializable

public class ExternalResourcesCRLSource extends OfflineCRLSource
This class allows to provide a CRL source based on the list of external CRL(s).
See Also:
  • Constructor Details

    • ExternalResourcesCRLSource

      public ExternalResourcesCRLSource(String... paths)
      This constructor allows building of a CRL source from an array of resource paths.
      Parameters:
      paths - paths to be loaded as CRL
    • ExternalResourcesCRLSource

      public ExternalResourcesCRLSource(InputStream... inputStreams)
      This constructor allows building of a CRL source from an array of InputStreams.
      Parameters:
      inputStreams - an array of InputStreams to be loaded as CRL
    • ExternalResourcesCRLSource

      public ExternalResourcesCRLSource(eu.europa.esig.dss.model.DSSDocument... dssDocuments)
      This constructor allows building of a CRL source from an array of DSSDocuments.
      Parameters:
      dssDocuments - an array of DSSDocuments to be loaded as CRL
  • Method Details

    • getRevocationTokens

      public List<RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>> getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken certificate, eu.europa.esig.dss.model.x509.CertificateToken issuer)
      Description copied from interface: MultipleRevocationSource
      This method retrieves a list of RevocationToken for the certificateToken
      Specified by:
      getRevocationTokens in interface MultipleRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
      Overrides:
      getRevocationTokens in class OfflineCRLSource
      Parameters:
      certificate - The CertificateToken for which the request is made
      issuer - The CertificateToken which is the issuer of the certificateToken
      Returns:
      a list of RevocationToken