Class FileCacheCRLSource
java.lang.Object
eu.europa.esig.dss.service.crl.FileCacheCRLSource
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> -
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 TypeMethodDescriptionvoidprotected voiddeleteCacheFile(File arg0) protected List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>> findRevocations(String arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1, eu.europa.esig.dss.model.x509.CertificateToken arg2) getRevocationAccessUrls(eu.europa.esig.dss.model.x509.CertificateToken certificateToken) protected Stringprotected StringgetRevocationSourceUrl(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> arg1) 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) 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) List<eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL>> 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.crl.CRL>> getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1, boolean arg2) initRevocationTokenKeys(eu.europa.esig.dss.model.x509.CertificateToken certificateToken) protected voidinsertRevocation(String arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> arg1) protected booleanisNotExpired(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1) 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 voidremoveRevocation(String arg0) 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) voidvoidsetFileCacheDirectory(File arg0) voidsetMaxNextUpdateDelay(Long arg0) voidsetProxySource(eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> arg0) voidsetRemoveExpired(boolean arg0) protected voidupdateRevocation(String arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> arg1)
-
Field Details
-
proxiedSource
protected eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> proxiedSource
-
-
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) -
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) -
getRevocationFileExtension
-
getRevocationTokenKey
-
getRevocationAccessUrls
-
initRevocationTokenKeys
-
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) -
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) -
setFileCacheDirectory
-
getFileCacheDirectory
-
findRevocations
-
insertRevocation
protected void insertRevocation(String arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> arg1) -
updateRevocation
protected void updateRevocation(String arg0, eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> arg1) -
removeRevocation
-
deleteCacheFile
-
clearCache
public void clearCache() -
setDefaultNextUpdateDelay
-
setMaxNextUpdateDelay
-
setProxySource
public void setProxySource(eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> 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.crl.CRL>> 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.crl.CRL>> 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.crl.CRL> arg1) -
isNotExpired
protected boolean isNotExpired(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> arg0, eu.europa.esig.dss.model.x509.CertificateToken arg1)
-