Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.security.cert
Class CollectionCertStoreParameters  view CollectionCertStoreParameters download CollectionCertStoreParameters.java

java.lang.Object
  extended byjava.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.


Field Summary
private  java.util.Collection collection
          The underlying collection.
 
Constructor Summary
CollectionCertStoreParameters()
          Creates a new CollectionCertStoreParameters with an empty, immutable collection.
CollectionCertStoreParameters(java.util.Collection collection)
          Create a new CollectionCertStoreParameters with the specified collection.
 
Method Summary
 java.lang.Object clone()
          Create a copy of these parameters.
 java.util.Collection getCollection()
          Return the underlying collection.
 java.lang.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
 

Field Detail

collection

private final java.util.Collection collection
The underlying collection.

Constructor Detail

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.

Method Detail

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.