Class CRLCacheManagement
java.lang.Object
br.ufsc.labsec.utils.cache.Cache<RevocationResult<X509CRL>>
br.ufsc.labsec.signature.repository.PKCS12IdentityService.RevocationCache<X509CRL>
br.ufsc.labsec.signature.repository.PKCS12IdentityService.CRLCacheManagement
- All Implemented Interfaces:
CRLRevocationCache, Iterable<CacheEntry<RevocationResult<X509CRL>>>
-
Nested Class Summary
Nested classes/interfaces inherited from class Cache
Cache.Source -
Field Summary
Fields inherited from class Cache
path, regexFilter, runtimeCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) getCRLFromCertificate(Object certificate, Time timeReference) protected booleanVerifica se o objeto armazenado no cache é útil pare ser armazenadoMethods inherited from class RevocationCache
downloadAndStore, getCacheKeyFromCert, getRevocation, isUsefulMethods inherited from class Cache
checkExpired, get, getLastAccess, getSource, groupFilesInDiskBy, has, has, iterator, remove, storeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CRLRevocationCache
getCRLFromCertificateMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
CRLCacheManagement
-
-
Method Details
-
decodeEntry
Description copied from class:CacheDecodifica 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:
decodeEntryin 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:
getCRLFromCertificatein interfaceCRLRevocationCache
-
isUseful
Description copied from class:RevocationCacheVerifica se o objeto armazenado no cache é útil pare ser armazenado- Specified by:
isUsefulin classRevocationCache<X509CRL>- Parameters:
crl- O objetotimeReference- A data de referência- Returns:
- Indica se o objeto é útil
-
download
- Specified by:
downloadin classRevocationCache<X509CRL>
-