Class FileRevocationSource.FileCacheEntry

java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource.FileCacheEntry
Enclosing class:
FileRevocationSource<R extends Revocation>

protected class FileRevocationSource.FileCacheEntry extends Object
This class represents a cache entry related to a single revocation token
  • Constructor Details

    • FileCacheEntry

      public FileCacheEntry(String key, String revocationExtension)
      Default constructor
      Parameters:
      key - String unique identifier of the revocation data (e.g. a normalized URI location)
      revocationExtension - String filename extension for the revocation data document
  • Method Details

    • getRevocationDataBinaries

      public byte[] getRevocationDataBinaries()
      Gets the revocation data binaries, when present
      Returns:
      byte array
    • getRevocationDataSourceUrl

      public String getRevocationDataSourceUrl()
      Gets URL originally used to retrieve the revocation data
      Returns:
      String
    • getIssuerCertificateToken

      public CertificateToken getIssuerCertificateToken()
      Gets a revocation data issuer's certificate, when present in the filesystem
      Returns:
      CertificateToken
    • saveRevocationToken

      public void saveRevocationToken(RevocationToken<R> revocationToken)
      Writes revocationToken to corresponding cache document and associated documents
      Parameters:
      revocationToken - RevocationToken
    • saveCertificateToken

      public void saveCertificateToken(CertificateToken certificateToken)
      Writes certificateToken to corresponding cache document
      Parameters:
      certificateToken - CertificateToken
    • clean

      public boolean clean()
      Cleans all files within the file system associated with the current cache entry
      Returns:
      TRUE if the cache has been cleaned succesfully, FALSE otherwise
    • exists

      public boolean exists()
      Checks whether the revocation cache exists
      Returns:
      TRUE if the cache exists, FALSE otherwise