Class PKCS12CertificateCollectionImpl
java.lang.Object
br.ufsc.labsec.commons.utils.cache.Cache<PKCS12CertificateCollectionImpl.CertificateCacheable>
br.ufsc.labsec.signature.repository.PKCS12IdentityService.PKCS12CertificateCollectionImpl
- All Implemented Interfaces:
CertificateCollectionCache, Iterable<CacheEntry<PKCS12CertificateCollectionImpl.CertificateCacheable>>
public class PKCS12CertificateCollectionImpl
extends Cache<PKCS12CertificateCollectionImpl.CertificateCacheable>
implements CertificateCollectionCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from class Cache
Cache.Source -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPKCS12CertificateCollectionImpl(PKCS12Repository pkcs12Repository) Construtor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCertificates(Collection<X509Certificate> certificates) voidaddCertPath(CertPath certPath) decodeEntry(byte[] encoded) Decodifica um objeto em cache a partir de seus bytesgetCertificate(org.bouncycastle.util.Selector<Certificate> selector) getCertificates(org.bouncycastle.util.Selector<Certificate> selector) getIssuerCertificate(Object certificate) Methods inherited from class Cache
checkExpired, get, getLastAccess, getSource, has, has, iterator, remove, storeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
PKCS12CertificateCollectionImpl
Construtor- Parameters:
pkcs12Repository- Repositório com certificados a ser carregado a coleção
-
-
Method Details
-
addCertificates
- Specified by:
addCertificatesin interfaceCertificateCollectionCache
-
getCertificate
- Specified by:
getCertificatein interfaceCertificateCollectionCache
-
getCertificates
- Specified by:
getCertificatesin interfaceCertificateCollectionCache
-
getIssuerCertificate
- Specified by:
getIssuerCertificatein interfaceCertificateCollectionCache
-
addCertPath
- Specified by:
addCertPathin interfaceCertificateCollectionCache
-
decodeEntry
protected PKCS12CertificateCollectionImpl.CertificateCacheable decodeEntry(byte[] encoded) throws EncodingException Description copied from class:CacheDecodifica um objeto em cache a partir de seus bytes- Specified by:
decodeEntryin classCache<PKCS12CertificateCollectionImpl.CertificateCacheable>- Parameters:
encoded- Os bytes do objeto- Returns:
- O objeto decodificado
- Throws:
EncodingException- Exceção em caso de erro na decodificação
-