aicas logoJamaica 3.2 release 62

java.security.cert
Class CollectionCertStoreParameters

java.lang.Object
  extended by java.security.cert.CollectionCertStoreParameters
All Implemented Interfaces:
Cloneable, CertStoreParameters

public class CollectionCertStoreParameters
extends Object
implements CertStoreParameters

An implementation of CertStoreParameters with a simple, in-memory 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.

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
 Object clone()
          clone creates a shallow clone of this.
 Collection getCollection()
          Return the underlying collection.
 String toString()
          Return a string representation of these parameters.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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()
Description copied from class: Object
clone creates a shallow clone of this.

Specified by:
clone in interface CertStoreParameters
Overrides:
clone in class Object
Returns:
a clone of this object.

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.

Overrides:
toString in class Object
Returns:
The string representation of these parameters.

aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.