java.lang.Object
java.security.cert.CollectionCertStoreParameters
- All Implemented Interfaces:
- CertStoreParameters, java.lang.Cloneable
- public class CollectionCertStoreParameters
- extends java.lang.Object
- implements CertStoreParameters
An implementation of CertStoreParameters with a simple,
in-memory java.util.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.
collection
private final java.util.Collection collection
- The underlying collection.
CollectionCertStoreParameters
public CollectionCertStoreParameters()
- Creates a new CollectionCertStoreParameters with an empty,
immutable collection.
CollectionCertStoreParameters
public CollectionCertStoreParameters(java.util.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.
clone
public java.lang.Object clone()
- Description copied from interface:
CertStoreParameters
- Create a copy of these parameters.
- Specified by:
clone in interface CertStoreParameters
getCollection
public java.util.Collection getCollection()
- Return the underlying collection. The collection is not copied
before being returned, so callers may update the collection that is
returned.
toString
public java.lang.String toString()
- Return a string representation of these parameters.