![JAR search and dependency download from the Maven repository](/logo.png)
nl.open.jwtdependency.org.bouncycastle.jce.MultiCertStoreParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-jwt-nodependencies Show documentation
Show all versions of java-jwt-nodependencies Show documentation
This is a drop in replacement for the auth0 java-jwt library (see https://github.com/auth0/java-jwt). This jar makes sure there are no external dependencies (e.g. fasterXml, Apacha Commons) needed. This is useful when deploying to an application server (e.g. tomcat with Alfreso or Pega).
The newest version!
package org.bouncycastle.jce;
import java.security.cert.CertStoreParameters;
import java.util.Collection;
public class MultiCertStoreParameters
implements CertStoreParameters
{
private Collection certStores;
private boolean searchAllStores;
/**
* Create a parameters object which specifies searching of all the passed in stores.
*
* @param certStores CertStores making up the multi CertStore
*/
public MultiCertStoreParameters(Collection certStores)
{
this(certStores, true);
}
/**
* 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.
*
* @param certStores CertStores making up the multi CertStore
* @param searchAllStores true if all CertStores should be searched on request, false if a result
* should be returned on the first successful CertStore query.
*/
public MultiCertStoreParameters(Collection certStores, boolean searchAllStores)
{
this.certStores = certStores;
this.searchAllStores = searchAllStores;
}
public Collection getCertStores()
{
return certStores;
}
public boolean getSearchAllStores()
{
return searchAllStores;
}
public Object clone()
{
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy