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 Certificates that
match the specified selector (never null)A selector)CertSelector used to select which
Certificates should be returned. Specify null
to return all Certificates (if supported).Returns a |
| public abstract Collection | Returns: ACollection of CRLs that
match the specified selector (never null)A selector)CRLSelector used to select which
CRLs should be returned. Specify null
to return all CRLs (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
| |