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 TypeMethodDescriptionbooleanclean()Cleans all files within the file system associated with the current cache entrybooleanexists()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 datavoidsaveCertificateToken(CertificateToken certificateToken) WritescertificateTokento corresponding cache documentvoidsaveRevocationToken(RevocationToken<R> revocationToken) WritesrevocationTokento 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
WritesrevocationTokento corresponding cache document and associated documents- Parameters:
revocationToken-RevocationToken
-
saveCertificateToken
WritescertificateTokento 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
-