java.security.cert

Class CertStoreSpi

public abstract class CertStoreSpi extends Object

The service provider interface (SPI) for the {@link CertStore} class.

Providers wishing to implement a CertStore must subclass this class, implementing all the abstract methods. Providers may also implement the {@link CertStoreParameters} interface, if they require parameters.

Since: 1.4

See Also: CertStore CollectionCertStoreParameters LDAPCertStoreParameters

Constructor Summary
CertStoreSpi(CertStoreParameters params)
Creates a new CertStoreSpi.
Method Summary
abstract Collection<? extends Certificate>engineGetCertificates(CertSelector selector)
Get the certificates from this store, filtering them through the specified CertSelector.
abstract Collection<? extends CRL>engineGetCRLs(CRLSelector selector)
Get the certificate revocation list from this store, filtering them through the specified CRLSelector.

Constructor Detail

CertStoreSpi

public CertStoreSpi(CertStoreParameters params)
Creates a new CertStoreSpi.

Parameters: params The parameters to initialize this instance with, or null if no parameters are required.

Throws: InvalidAlgorithmParameterException If the specified parameters are inappropriate for this class.

Method Detail

engineGetCertificates

public abstract Collection<? extends Certificate> engineGetCertificates(CertSelector selector)
Get the certificates from this store, filtering them through the specified CertSelector.

Parameters: selector The CertSelector to filter certificates.

Returns: A (non-null) collection of certificates.

Throws: CertStoreException If the certificates cannot be retrieved.

engineGetCRLs

public abstract Collection<? extends CRL> engineGetCRLs(CRLSelector selector)
Get the certificate revocation list from this store, filtering them through the specified CRLSelector.

Parameters: selector The CRLSelector to filter certificate revocation lists.

Returns: A (non-null) collection of certificate revocation list.

Throws: CertStoreException If the CRLs cannot be retrieved.