Class CRLCacheManagement
java.lang.Object
br.ufsc.labsec.utils.cache.Cache<RevocationResult<Data>>
br.ufsc.labsec.signature.repository.PKCS12IdentityService.RevocationCache<X509CRL>
br.ufsc.labsec.signature.repository.PKCS12IdentityService.CRLCacheManagement
- All Implemented Interfaces:
CRLRevocationCache
,Iterable<CacheEntry<RevocationResult<X509CRL>>>
public class CRLCacheManagement extends RevocationCache<X509CRL> implements CRLRevocationCache
-
Nested Class Summary
Nested classes/interfaces inherited from class br.ufsc.labsec.utils.cache.Cache
Cache.Source
-
Field Summary
Fields inherited from class br.ufsc.labsec.utils.cache.Cache
path, regexFilter, runtimeCache
-
Constructor Summary
Constructors Constructor Description CRLCacheManagement(String cachePath)
-
Method Summary
Modifier and Type Method Description protected RevocationResult<X509CRL>
decodeEntry(byte[]... encodedParts)
Decodifica um objeto em cache a partir de seus bytes em "chunks", habilitando armazenamento de um objeto em diversos arquivos, como assinaturas detached, por exemplo.protected Optional<RevocationResult<X509CRL>>
download(SubjectIssuerPair certificatePair)
Optional<RevocationResult<X509CRL>>
getCRLFromCertificate(Object certificate, Time timeReference)
protected boolean
isUseful(X509CRL crl, Date timeReference)
Verifica se o objeto armazenado no cache é útil pare ser armazenadoMethods inherited from class br.ufsc.labsec.signature.repository.PKCS12IdentityService.RevocationCache
downloadAndStore, getCacheKeyFromCert, getRevocation, isUseful
Methods inherited from class br.ufsc.labsec.utils.cache.Cache
checkExpired, get, getLastAccess, getSource, groupFilesInDiskBy, has, has, iterator, remove, store
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface br.ufsc.labsec.signature.validationData.CRLRevocationCache
getCRLFromCertificate
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CRLCacheManagement
-
-
Method Details
-
decodeEntry
Description copied from class:Cache
Decodifica um objeto em cache a partir de seus bytes em "chunks", habilitando armazenamento de um objeto em diversos arquivos, como assinaturas detached, por exemplo.- Specified by:
decodeEntry
in classCache<RevocationResult<X509CRL>>
- Parameters:
encodedParts
- Os bytes do objeto- Returns:
- O objeto decodificado
- Throws:
EncodingException
- Exceção em caso de erro na decodificação
-
getCRLFromCertificate
public Optional<RevocationResult<X509CRL>> getCRLFromCertificate(Object certificate, Time timeReference)- Specified by:
getCRLFromCertificate
in interfaceCRLRevocationCache
-
isUseful
Description copied from class:RevocationCache
Verifica se o objeto armazenado no cache é útil pare ser armazenado- Specified by:
isUseful
in classRevocationCache<X509CRL>
- Parameters:
crl
- O objetotimeReference
- A data de referência- Returns:
- Indica se o objeto é útil
-
download
- Specified by:
download
in classRevocationCache<X509CRL>
-