Class FileCacheOCSPSource

java.lang.Object
eu.europa.esig.dss.service.ocsp.FileCacheOCSPSource
All Implemented Interfaces:
Serializable

public class FileCacheOCSPSource extends Object
OCSPSource that stores its OCSP responses on the file system.

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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty constructor.
    FileCacheOCSPSource(eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPSource proxiedSource)
    Constructor that initializes the file cache OCSP source with a proxiedOCSPSource provided.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
     
    protected List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>>
    findRevocations(String arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1, eu.europa.esig.dss.model.x509.CertificateToken arg2)
     
     
    protected List<String>
    getRevocationAccessUrls(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
     
    protected String
     
    protected String
    getRevocationSourceUrl(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg1)
     
    eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken
    getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken)
     
    eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken
    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 revocationAccessUrl)
     
    List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>>
    getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1)
     
    List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>>
    getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1, boolean arg2)
     
    protected List<String>
    initRevocationTokenKeys(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
     
    protected void
    insertRevocation(String arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg1)
     
    protected boolean
    isNotExpired(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1)
     
    protected eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken
    reconstructTokenFromEncodedData(eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>.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
     
    protected void
    saveRevocationToken(eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>.eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource.FileCacheEntry arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg1)
     
    void
     
    void
     
    void
     
    void
    setProxySource(eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg0)
     
    void
    setRemoveExpired(boolean arg0)
     
    protected void
    updateRevocation(String arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg1)
     

    Methods inherited from class Object

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

    • proxiedSource

      protected eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> proxiedSource
  • Constructor Details

    • FileCacheOCSPSource

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

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

    • reconstructTokenFromEncodedData

      protected eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken reconstructTokenFromEncodedData(eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>.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)
    • getRevocationFileExtension

      protected String getRevocationFileExtension()
    • getRevocationTokenKey

      protected String getRevocationTokenKey(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, String revocationAccessUrl)
    • getRevocationAccessUrls

      protected List<String> getRevocationAccessUrls(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
    • initRevocationTokenKeys

      protected List<String> initRevocationTokenKeys(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
    • getRevocationToken

      public eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken, boolean forceRefresh)
    • getRevocationToken

      public eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken getRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken)
    • setFileCacheDirectory

      public void setFileCacheDirectory(File arg0)
    • getFileCacheDirectory

      public File getFileCacheDirectory()
    • findRevocations

      protected List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> findRevocations(String arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1, eu.europa.esig.dss.model.x509.CertificateToken arg2)
    • insertRevocation

      protected void insertRevocation(String arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg1)
    • saveRevocationToken

      protected void saveRevocationToken(eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>.eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource.FileCacheEntry arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg1)
    • updateRevocation

      protected void updateRevocation(String arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg1)
    • removeRevocation

      protected void removeRevocation(String arg0)
    • deleteCacheFile

      protected void deleteCacheFile(File arg0)
    • clearCache

      public void clearCache()
    • setDefaultNextUpdateDelay

      public void setDefaultNextUpdateDelay(Long arg0)
    • setMaxNextUpdateDelay

      public void setMaxNextUpdateDelay(Long arg0)
    • setProxySource

      public void setProxySource(eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg0)
    • setRemoveExpired

      public void setRemoveExpired(boolean arg0)
    • getRevocationTokens

      public List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1)
    • getRevocationTokens

      public List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1, boolean arg2)
    • getRevocationSourceUrl

      protected String getRevocationSourceUrl(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg1)
    • isNotExpired

      protected boolean isNotExpired(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1)