Top Fields Constructors Methods
org.bouncycastle.jce.provider

public Class CertStoreCollectionSpi

extends CertStoreSpi
Class Inheritance
Imports
java.security.InvalidAlgorithmParameterException, java.security.cert.CRL, .CRLSelector, .CertSelector, .CertStoreException, .CertStoreParameters, .CertStoreSpi, .Certificate, .CollectionCertStoreParameters, java.util.ArrayList, .Collection, .Iterator, .List

Field Summary

Modifier and TypeField and Description
private CollectionCertStoreParameters

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Collection<E>
engineGetCertificates(CertSelector
A CertSelector used to select which Certificates should be returned. Specify null to return all Certificates (if supported).
selector
)

Implements abstract java.security.cert.CertStoreSpi.engineGetCertificates.

Returns a Collection of Certificates that match the specified selector.

public Collection<E>
engineGetCRLs(CRLSelector
A CRLSelector used to select which CRLs should be returned. Specify null to return all CRLs (if supported).
selector
)

Implements abstract java.security.cert.CertStoreSpi.engineGetCRLs.

Returns a Collection of CRLs that match the specified selector.

Field Detail

paramsback to summary
private CollectionCertStoreParameters params

Constructor Detail

CertStoreCollectionSpiback to summary
public CertStoreCollectionSpi(CertStoreParameters params) throws InvalidAlgorithmParameterException

Method Detail

engineGetCertificatesback to summary
public Collection<E> engineGetCertificates(CertSelector selector) throws CertStoreException

Implements abstract java.security.cert.CertStoreSpi.engineGetCertificates.

Doc from java.security.cert.CertStoreSpi.engineGetCertificates.

Returns a Collection of Certificates that match the specified selector. If no Certificates match the selector, an empty Collection will be returned.

For some CertStore types, the resulting Collection may not contain all of the Certificates that match the selector. For instance, an LDAP CertStore may not search all entries in the directory. Instead, it may just search entries that are likely to contain the Certificates it is looking for.

Some CertStore implementations (especially LDAP CertStores) may throw a CertStoreException unless a non-null CertSelector is provided that includes specific criteria that can be used to find the certificates. Issuer and/or subject names are especially useful criteria.

Parameters
selector:CertSelector

A CertSelector used to select which Certificates should be returned. Specify null to return all Certificates (if supported).

Returns:Collection<E>

A Collection of Certificates that match the specified selector (never null)

Exceptions
CertStoreException:
if an exception occurs
engineGetCRLsback to summary
public Collection<E> engineGetCRLs(CRLSelector selector) throws CertStoreException

Implements abstract java.security.cert.CertStoreSpi.engineGetCRLs.

Doc from java.security.cert.CertStoreSpi.engineGetCRLs.

Returns a Collection of CRLs that match the specified selector. If no CRLs match the selector, an empty Collection will be returned.

For some CertStore types, the resulting Collection may not contain all of the CRLs that match the selector. For instance, an LDAP CertStore may not search all entries in the directory. Instead, it may just search entries that are likely to contain the CRLs it is looking for.

Some CertStore implementations (especially LDAP CertStores) may throw a CertStoreException unless a non-null CRLSelector is provided that includes specific criteria that can be used to find the CRLs. Issuer names and/or the certificate to be checked are especially useful.

Parameters
selector:CRLSelector

A CRLSelector used to select which CRLs should be returned. Specify null to return all CRLs (if supported).

Returns:Collection<E>

A Collection of CRLs that match the specified selector (never null)

Exceptions
CertStoreException:
if an exception occurs