FileDocCategorySizeDatePackage
CollectionCertStoreParameters.javaAPI DocAndroid 1.5 API3783Wed May 06 22:41:06 BST 2009java.security.cert

CollectionCertStoreParameters

public class CollectionCertStoreParameters extends Object implements CertStoreParameters
The parameters to initialize a Collection type {@code CertStore} instance.

It is used to specify the {@code Collection} where the {@code CertStore} will retrieve the certificates and CRLs from.

since
Android 1.0

Fields Summary
private static final Collection
defaultCollection
private final Collection
collection
Constructors Summary
public CollectionCertStoreParameters()
Creates a new {@code CollectionCertStoreParameters} without a collection.

The default collection is an empty and unmodifiable {@code Collection}.

since
Android 1.0

    // END android-changed

                                
      
        this.collection = defaultCollection;
    
public CollectionCertStoreParameters(Collection collection)
Creates a new {@code CollectionCertStoreParameters} with the specified collection.

The specified collection is not copied and therefore may be modified at any time.

param
collection the collection where the {@code Certificate}s and {@code CRL}s will be retrieved from.
throws
NullPointerException if {@code collection is null}.
since
Android 1.0

        this.collection = collection;
        if (this.collection == null) {
            throw new NullPointerException();
        }
    
Methods Summary
public java.lang.Objectclone()
Clones this {@code CollectionCertStoreParameters} instance, but not the underlying collection.

return
the cloned instance.
since
Android 1.0

        return new CollectionCertStoreParameters(collection);
    
public java.util.CollectiongetCollection()
Returns the collection where the {@code Certificate}s and {@code CRL}s are retrieved from.

return
the collection where the {@code Certificate}s and {@code CRL}s will be retrieved from.
since
Android 1.0

        return collection;
    
public java.lang.StringtoString()
Returns the string representation of this instance.

return
the string representation of this instance.
since
Android 1.0

        StringBuffer sb =
            new StringBuffer("CollectionCertStoreParameters: [\ncollection: "); //$NON-NLS-1$
        sb.append(getCollection().toString());
        sb.append("\n]"); //$NON-NLS-1$
        return sb.toString();