java.security.cert

Class CollectionCertStoreParameters

public class CollectionCertStoreParameters extends Object implements CertStoreParameters

An implementation of {@link CertStoreParameters} with a simple, in-memory {@link Collection} of certificates and certificate revocation list.

Note that this class is not thread-safe, and its underlying collection may be changed at any time.

Since: 1.4

See Also: CertStore

Constructor Summary
CollectionCertStoreParameters()
Creates a new CollectionCertStoreParameters with an empty, immutable collection.
CollectionCertStoreParameters(Collection<?> collection)
Create a new CollectionCertStoreParameters with the specified collection.
Method Summary
Objectclone()
Collection<?>getCollection()
Return the underlying collection.
StringtoString()
Return a string representation of these parameters.

Constructor Detail

CollectionCertStoreParameters

public CollectionCertStoreParameters()
Creates a new CollectionCertStoreParameters with an empty, immutable collection.

CollectionCertStoreParameters

public CollectionCertStoreParameters(Collection<?> collection)
Create a new CollectionCertStoreParameters with the specified collection. The argument is not copied, and subsequent changes to the collection will change this class's collection.

Parameters: collection The collection.

Throws: NullPointerException If collection is null.

Method Detail

clone

public Object clone()

getCollection

public Collection<?> getCollection()
Return the underlying collection. The collection is not copied before being returned, so callers may update the collection that is returned.

Returns: The collection.

toString

public String toString()
Return a string representation of these parameters.

Returns: The string representation of these parameters.