CertStore
that retrieves Certificates
and
CRL
s from a Collection
.
Before calling the engineGetCertificates
or
engineGetCRLs
methods, the
CollectionCertStore(CertStoreParameters)
constructor is called to
create the CertStore
and establish the
Collection
from which Certificate
s and
CRL
s will be retrieved. If the specified
Collection
contains an object that is not a
Certificate
or CRL
, that object will be
ignored.
Concurrent Access
As described in the javadoc for CertStoreSpi
, the
engineGetCertificates
and engineGetCRLs
methods
must be thread-safe. That is, multiple threads may concurrently
invoke these methods on a single CollectionCertStore
object (or more than one) with no ill effects.
This is achieved by requiring that the Collection
passed to
the CollectionCertStore(CertStoreParameters)
constructor (via the
CollectionCertStoreParameters
object) must have fail-fast
iterators. Simultaneous modifications to the Collection
can thus be
detected and certificate or CRL retrieval can be retried. The fact that
Certificate
s and CRL
s must be thread-safe is also
essential.
java.security.cert.CertStore
Modifier and Type | Field and Description |
---|---|
private final Collection |
Access | Constructor and Description |
---|---|
public | CollectionCertStore(CertStoreParameters
the algorithm parameters params)Creates a |
Modifier and Type | Method and Description |
---|---|
public Collection | Returns: aCollection of Certificate s that
match the specified selectora selector)CertSelector used to select which
Certificate s should be returned. Specify null
to return all Certificate s.Implements abstract java. Returns a |
public Collection | Returns: aCollection of CRL s that
match the specified selectora selector)CRLSelector used to select which
CRL s should be returned. Specify null
to return all CRL s.Implements abstract java. Returns a |
coll | back to summary |
---|---|
private final Collection<?> coll |
CollectionCertStore | back to summary |
---|---|
public CollectionCertStore(CertStoreParameters params) throws InvalidAlgorithmParameterException Creates a
|
engineGetCertificates | back to summary |
---|---|
public Collection Implements abstract java. Returns a
|
engineGetCRLs | back to summary |
---|---|
public Collection Implements abstract java. Returns a
|