CertStore
class. All CertStore
implementations must include a class (the SPI class) that extends
this class (CertStoreSpi
), provides a constructor with
a single argument of type CertStoreParameters
, and implements
all of its methods. In general, instances of this class should only be
accessed through the CertStore
class.
For details, see the Java Cryptography Architecture.
Concurrent Access
The public methods of all CertStoreSpi
objects must be
thread-safe. That is, multiple threads may concurrently invoke these
methods on a single CertStoreSpi
object (or more than one)
with no ill effects. This allows a CertPathBuilder
to search
for a CRL while simultaneously searching for further certificates, for
instance.
Simple CertStoreSpi
implementations will probably ensure
thread safety by adding a synchronized
keyword to their
engineGetCertificates
and engineGetCRLs
methods.
More sophisticated ones may allow truly concurrent access.
Access | Constructor and Description |
---|---|
public | CertStoreSpi(CertStoreParameters
the initialization parameters (may be params)null )The sole constructor. |
Modifier and Type | Method and Description |
---|---|
public abstract Collection | Returns: ACollection of Certificate s that
match the specified selector (never null )A selector)CertSelector used to select which
Certificate s should be returned. Specify null
to return all Certificate s (if supported).Returns a |
public abstract Collection | Returns: ACollection of CRL s that
match the specified selector (never null )A selector)CRLSelector used to select which
CRL s should be returned. Specify null
to return all CRL s (if supported).Returns a |
CertStoreSpi | back to summary |
---|---|
public CertStoreSpi(CertStoreParameters params) throws InvalidAlgorithmParameterException The sole constructor.
|
engineGetCertificates | back to summary |
---|---|
public abstract Collection Returns a
For some
Some
|
engineGetCRLs | back to summary |
---|---|
public abstract Collection Returns a
For some
Some
|