Package java.security.cert
Class CertStoreSpi
java.lang.Object
java.security.cert.CertStoreSpi
- Direct Known Subclasses:
CertStoreCollectionSpi
public abstract class CertStoreSpi extends Object
The Service Provider Interface (SPI) definition for the
CertStore class to be implemented by security providers.-
Constructor Summary
Constructors Constructor Description CertStoreSpi(CertStoreParameters params)Creates a newCertStoreSpi. -
Method Summary
Modifier and Type Method Description abstract Collection<? extends Certificate>engineGetCertificates(CertSelector selector)Returns the list ofCertificates for the specifiedCertSelectorfrom this instance.abstract Collection<? extends CRL>engineGetCRLs(CRLSelector selector)Returns the list ofCRLs for the specifiedCRLSelectorfrom this instance.
-
Constructor Details
-
CertStoreSpi
Creates a newCertStoreSpi.- Parameters:
params- the initialization parameters.- Throws:
InvalidAlgorithmParameterException- if the specified initialization parameters cannot be used to initialize this instance.
-
-
Method Details
-
engineGetCertificates
public abstract Collection<? extends Certificate> engineGetCertificates(CertSelector selector) throws CertStoreExceptionReturns the list ofCertificates for the specifiedCertSelectorfrom this instance.- Parameters:
selector- the selector containing the criteria to search for certificates in this instance.- Returns:
- the list of
Certificates that match the criteria of the specified selector. - Throws:
CertStoreException- if error(s) occur.
-
engineGetCRLs
public abstract Collection<? extends CRL> engineGetCRLs(CRLSelector selector) throws CertStoreExceptionReturns the list ofCRLs for the specifiedCRLSelectorfrom this instance.- Parameters:
selector- the selector containing the criteria to search for certificate revocation lists in instance.- Returns:
- the list of
CRLs that match the criteria of the specified selector - Throws:
CertStoreException- if error(s) occur.
-