Class FileRevocationSource.FileCacheEntry
java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.FileRevocationSource.FileCacheEntry
- Enclosing class:
FileRevocationSource<R extends Revocation>
This class represents a cache entry related to a single revocation token
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
clean()
Cleans all files within the file system associated with the current cache entryboolean
exists()
Checks whether the revocation cache existsGets a revocation data issuer's certificate, when present in the filesystembyte[]
Gets the revocation data binaries, when presentGets URL originally used to retrieve the revocation datavoid
saveCertificateToken
(CertificateToken certificateToken) WritescertificateToken
to corresponding cache documentvoid
saveRevocationToken
(RevocationToken<R> revocationToken) WritesrevocationToken
to corresponding cache document and associated documents
-
Constructor Details
-
Method Details
-
getRevocationDataBinaries
public byte[] getRevocationDataBinaries()Gets the revocation data binaries, when present- Returns:
- byte array
-
getRevocationDataSourceUrl
Gets URL originally used to retrieve the revocation data- Returns:
String
-
getIssuerCertificateToken
Gets a revocation data issuer's certificate, when present in the filesystem- Returns:
CertificateToken
-
saveRevocationToken
WritesrevocationToken
to corresponding cache document and associated documents- Parameters:
revocationToken
-RevocationToken
-
saveCertificateToken
WritescertificateToken
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
-