Top Fields Constructors Methods
org.bouncycastle.jce

public Class MultiCertStoreParameters

extends Object
implements CertStoreParameters
Class Inheritance
All Implemented Interfaces
java.security.cert.CertStoreParameters, java.lang.Cloneable
Imports
java.security.cert.CertStoreParameters, java.util.Collection

Field Summary

Modifier and TypeField and Description
private Collection<E>
private boolean

Constructor Summary

AccessConstructor and Description
public
MultiCertStoreParameters(Collection<E>
CertStores making up the multi CertStore
certStores
)

Create a parameters object which specifies searching of all the passed in stores.

public
MultiCertStoreParameters(Collection<E>
CertStores making up the multi CertStore
certStores
,
boolean
true if all CertStores should be searched on request, false if a result should be returned on the first successful CertStore query.
searchAllStores
)

Create a parameters object which can be to used to make a multi store made up of the passed in CertStores.

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides java.lang.Object.clone.

Implements java.security.cert.CertStoreParameters.clone.

Makes a copy of this CertStoreParameters.
public Collection<E>
public boolean
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certStoresback to summary
private Collection<E> certStores
searchAllStoresback to summary
private boolean searchAllStores

Constructor Detail

MultiCertStoreParametersback to summary
public MultiCertStoreParameters(Collection<E> certStores)

Create a parameters object which specifies searching of all the passed in stores.

Parameters
certStores:Collection<E>

CertStores making up the multi CertStore

MultiCertStoreParametersback to summary
public MultiCertStoreParameters(Collection<E> certStores, boolean searchAllStores)

Create a parameters object which can be to used to make a multi store made up of the passed in CertStores. If the searchAllStores parameter is false, any search on the multi-store will terminate as soon as a search query produces a result.

Parameters
certStores:Collection<E>

CertStores making up the multi CertStore

searchAllStores:boolean

true if all CertStores should be searched on request, false if a result should be returned on the first successful CertStore query.

Method Detail

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Implements java.security.cert.CertStoreParameters.clone.

Doc from java.security.cert.CertStoreParameters.clone.

Makes a copy of this CertStoreParameters.

The precise meaning of "copy" may depend on the class of the CertStoreParameters object. A typical implementation performs a "deep copy" of this object, but this is not an absolute requirement. Some implementations may perform a "shallow copy" of some or all of the fields of this object.

Note that the CertStore.getInstance methods make a copy of the specified CertStoreParameters. A deep copy implementation of clone is safer and more robust, as it prevents the caller from corrupting a shared CertStore by subsequently modifying the contents of its initialization parameters. However, a shallow copy implementation of clone is more appropriate for applications that need to hold a reference to a parameter contained in the CertStoreParameters. For example, a shallow copy clone allows an application to release the resources of a particular CertStore initialization parameter immediately, rather than waiting for the garbage collection mechanism. This should be done with the utmost care, since the CertStore may still be in use by other threads.

Each subclass should state the precise behavior of this method so that users and developers know what to expect.

Returns:Object

a copy of this CertStoreParameters

getCertStoresback to summary
public Collection<E> getCertStores()
getSearchAllStoresback to summary
public boolean getSearchAllStores()