Class FileCacheCRLSource

java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.RepositoryRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
eu.europa.esig.dss.service.crl.FileCacheCRLSource
All Implemented Interfaces:
eu.europa.esig.dss.spi.x509.revocation.crl.CRLSource, eu.europa.esig.dss.spi.x509.revocation.MultipleRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>, eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>, Serializable

public class FileCacheCRLSource extends eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> implements eu.europa.esig.dss.spi.x509.revocation.crl.CRLSource
CRLSource that provides file-based caching functionality for CRL revocation data.

WARNING: The class represents an experimental functionality and included in the DSS version 6.3. Please note the class was not extensively tested.

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource

    eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource.FileCacheEntry
  • Field Summary

    Fields inherited from class eu.europa.esig.dss.spi.x509.revocation.RepositoryRevocationSource

    proxiedSource
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty constructor.
    FileCacheCRLSource(eu.europa.esig.dss.spi.x509.revocation.crl.CRLSource proxiedSource)
    Constructor that initializes the file cache CRL source with a proxiedCRLSource provided.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<String>
    getRevocationAccessUrls(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
     
    protected String
     
    eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken
    getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken)
     
    eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken
    getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken, boolean forceRefresh)
     
    protected String
    getRevocationTokenKey(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, String urlString)
     
    protected List<String>
    initRevocationTokenKeys(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
     
    protected eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
    reconstructTokenFromEncodedData(eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>.eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource.FileCacheEntry revocationCache, eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertToken)
     
    protected void
    saveRevocationToken(eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>.eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource.FileCacheEntry revocationCache, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> token)
     

    Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource

    clearCache, deleteCacheFile, findRevocations, getFileCacheDirectory, insertRevocation, removeRevocation, setFileCacheDirectory, updateRevocation

    Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.RepositoryRevocationSource

    getRevocationSourceUrl, getRevocationTokens, getRevocationTokens, isNotExpired, setDefaultNextUpdateDelay, setMaxNextUpdateDelay, setProxySource, setRemoveExpired

    Methods inherited from class java.lang.Object

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

    • FileCacheCRLSource

      public FileCacheCRLSource()
      Empty constructor. The proxied CRLSource can be provided using the #setProxySource method.
    • FileCacheCRLSource

      public FileCacheCRLSource(eu.europa.esig.dss.spi.x509.revocation.crl.CRLSource proxiedSource)
      Constructor that initializes the file cache CRL source with a proxiedCRLSource provided.
      Parameters:
      proxiedSource - CRLSource to be used to load CRL when the corresponding revocation document is not available in the file system.
  • Method Details

    • reconstructTokenFromEncodedData

      protected eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> reconstructTokenFromEncodedData(eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>.eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource.FileCacheEntry revocationCache, eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertToken)
      Specified by:
      reconstructTokenFromEncodedData in class eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
    • saveRevocationToken

      protected void saveRevocationToken(eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>.eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource.FileCacheEntry revocationCache, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> token)
      Overrides:
      saveRevocationToken in class eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
    • getRevocationFileExtension

      protected String getRevocationFileExtension()
      Specified by:
      getRevocationFileExtension in class eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
    • getRevocationTokenKey

      protected String getRevocationTokenKey(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, String urlString)
      Specified by:
      getRevocationTokenKey in class eu.europa.esig.dss.spi.x509.revocation.RepositoryRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
    • getRevocationAccessUrls

      protected List<String> getRevocationAccessUrls(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
      Specified by:
      getRevocationAccessUrls in class eu.europa.esig.dss.spi.x509.revocation.RepositoryRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
    • initRevocationTokenKeys

      protected List<String> initRevocationTokenKeys(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
      Specified by:
      initRevocationTokenKeys in class eu.europa.esig.dss.spi.x509.revocation.RepositoryRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
    • getRevocationToken

      public eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken, boolean forceRefresh)
      Overrides:
      getRevocationToken in class eu.europa.esig.dss.spi.x509.revocation.RepositoryRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
    • getRevocationToken

      public eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken)
      Specified by:
      getRevocationToken in interface eu.europa.esig.dss.spi.x509.revocation.crl.CRLSource
      Specified by:
      getRevocationToken in interface eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
      Overrides:
      getRevocationToken in class eu.europa.esig.dss.spi.x509.revocation.RepositoryRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>