java.lang.Object | ||
↳ | java.security.cert.CertStoreSpi | |
↳ | sun.security.provider.certpath.IndexedCollectionCertStore |
A CertStore
that retrieves Certificates
and
CRL
s from a Collection
.
This implementation is functionally equivalent to CollectionCertStore with two differences:
Before calling the engineGetCertificates
or
engineGetCRLs
methods, the
#CollectionCertStore(CertStoreParameters)
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)
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
CertStore with the specified parameters. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a
Collection of CRL s that
match the specified selector. | |||||||||||
Returns a
Collection of Certificate s that
match the specified selector. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a CertStore
with the specified parameters.
For this class, the parameters object must be an instance of
CollectionCertStoreParameters
.
params | the algorithm parameters |
---|
InvalidAlgorithmParameterException | if params is not an
instance of CollectionCertStoreParameters
|
---|
Returns a Collection
of CRL
s that
match the specified selector. If no CRL
s
match the selector, an empty Collection
will be returned.
selector | a CRLSelector used to select which
CRL s should be returned. Specify null
to return all CRL s. |
---|
Collection
of CRL
s that
match the specified selectorCertStoreException | if an exception occurs |
---|
Returns a Collection
of Certificate
s that
match the specified selector. If no Certificate
s
match the selector, an empty Collection
will be returned.
selector | a CertSelector used to select which
Certificate s should be returned. Specify null
to return all Certificate s. |
---|
Collection
of Certificate
s that
match the specified selectorCertStoreException | if an exception occurs |
---|