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
ConstructorsConstructorDescriptionEmpty 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 TypeMethodDescriptiongetRevocationAccessUrls(eu.europa.esig.dss.model.x509.CertificateToken certificateToken) protected Stringeu.europa.esig.dss.spi.x509.revocation.crl.CRLTokengetRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken) eu.europa.esig.dss.spi.x509.revocation.crl.CRLTokengetRevocationToken(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken, boolean forceRefresh) protected StringgetRevocationTokenKey(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, String urlString) 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 voidsaveRevocationToken(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, updateRevocationMethods inherited from class eu.europa.esig.dss.spi.x509.revocation.RepositoryRevocationSource
getRevocationSourceUrl, getRevocationTokens, getRevocationTokens, isNotExpired, setDefaultNextUpdateDelay, setMaxNextUpdateDelay, setProxySource, setRemoveExpired
-
Constructor Details
-
FileCacheCRLSource
public FileCacheCRLSource()Empty constructor. The proxied CRLSource can be provided using the#setProxySourcemethod. -
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-CRLSourceto 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:
reconstructTokenFromEncodedDatain classeu.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:
saveRevocationTokenin classeu.europa.esig.dss.spi.x509.revocation.FileRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
-
getRevocationFileExtension
- Specified by:
getRevocationFileExtensionin classeu.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:
getRevocationTokenKeyin classeu.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:
getRevocationAccessUrlsin classeu.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:
initRevocationTokenKeysin classeu.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:
getRevocationTokenin classeu.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:
getRevocationTokenin interfaceeu.europa.esig.dss.spi.x509.revocation.crl.CRLSource- Specified by:
getRevocationTokenin interfaceeu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>- Overrides:
getRevocationTokenin classeu.europa.esig.dss.spi.x509.revocation.RepositoryRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
-