Top Fields Constructors Methods
org.bouncycastle.jce.provider

public Class MultiCertStoreSpi

extends CertStoreSpi
Class Inheritance
Imports
java.security.InvalidAlgorithmParameterException, java.security.cert.CRLSelector, .CertSelector, .CertStore, .CertStoreException, .CertStoreParameters, .CertStoreSpi, java.util.ArrayList, .Collection, .Collections, .Iterator, .List, org.bouncycastle.jce.MultiCertStoreParameters

Field Summary

Modifier and TypeField and Description
private MultiCertStoreParameters

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).
certSelector
)

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).
crlSelector
)

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

Returns a Collection of CRLs that match the specified selector.

Field Detail

paramsback to summary
private MultiCertStoreParameters params

Constructor Detail

MultiCertStoreSpiback to summary
public MultiCertStoreSpi(CertStoreParameters params) throws InvalidAlgorithmParameterException

Method Detail

engineGetCertificatesback to summary
public Collection<E> engineGetCertificates(CertSelector certSelector) 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
certSelector: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 crlSelector) 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
crlSelector: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