java.security.cert
Class CertStoreSpi

java.lang.Object
  extended by java.security.cert.CertStoreSpi

public abstract class CertStoreSpi
extends Object

The service provider interface (SPI) for the CertStore class.

Providers wishing to implement a CertStore must subclass this class, implementing all the abstract methods. Providers may also implement the 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertStoreSpi

public CertStoreSpi(CertStoreParameters params)
             throws InvalidAlgorithmParameterException
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)
                                                                 throws CertStoreException
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)
                                                 throws CertStoreException
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.