![JAR search and dependency download from the Maven repository](/logo.png)
nl.open.jwtdependency.org.bouncycastle.x509.X509CollectionStoreParameters 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.x509;
import java.util.ArrayList;
import java.util.Collection;
/**
* This class contains a collection for collection based X509Store
s.
*
* @see org.bouncycastle.x509.X509Store
*
*/
public class X509CollectionStoreParameters
implements X509StoreParameters
{
private Collection collection;
/**
* Constructor.
*
* The collection is copied.
*
*
* @param collection
* The collection containing X.509 object types.
* @throws NullPointerException if collection
is null
.
*/
public X509CollectionStoreParameters(Collection collection)
{
if (collection == null)
{
throw new NullPointerException("collection cannot be null");
}
this.collection = collection;
}
/**
* Returns a shallow clone. The returned contents are not copied, so adding
* or removing objects will effect this.
*
* @return a shallow clone.
*/
public Object clone()
{
return new X509CollectionStoreParameters(collection);
}
/**
* Returns a copy of the Collection
.
*
* @return The Collection
. Is never null
.
*/
public Collection getCollection()
{
return new ArrayList(collection);
}
/**
* Returns a formatted string describing the parameters.
*
* @return a formatted string describing the parameters
*/
public String toString()
{
StringBuffer sb = new StringBuffer();
sb.append("X509CollectionStoreParameters: [\n");
sb.append(" collection: " + collection + "\n");
sb.append("]");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy