Package java.security.cert
Class CollectionCertStoreParameters
- java.lang.Object
-
- java.security.cert.CollectionCertStoreParameters
-
- All Implemented Interfaces:
Cloneable,CertStoreParameters
public class CollectionCertStoreParameters extends Object implements CertStoreParameters
The parameters to initialize a Collection typeCertStoreinstance.It is used to specify the
Collectionwhere theCertStorewill retrieve the certificates and CRLs from.
-
-
Constructor Summary
Constructors Constructor Description CollectionCertStoreParameters()Creates a newCollectionCertStoreParameterswithout a collection.CollectionCertStoreParameters(Collection<?> collection)Creates a newCollectionCertStoreParameterswith the specified collection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Clones thisCollectionCertStoreParametersinstance, but not the underlying collection.Collection<?>getCollection()Returns the collection where theCertificates andCRLs are retrieved from.StringtoString()Returns the string representation of this instance.
-
-
-
Constructor Detail
-
CollectionCertStoreParameters
public CollectionCertStoreParameters()
Creates a newCollectionCertStoreParameterswithout a collection.The default collection is an empty and unmodifiable
Collection.
-
CollectionCertStoreParameters
public CollectionCertStoreParameters(Collection<?> collection)
Creates a newCollectionCertStoreParameterswith the specified collection.The specified collection is not copied and therefore may be modified at any time.
- Parameters:
collection- the collection where theCertificates andCRLs will be retrieved from.- Throws:
NullPointerException- ifcollection is null.
-
-
Method Detail
-
clone
public Object clone()
Clones thisCollectionCertStoreParametersinstance, but not the underlying collection.- Specified by:
clonein interfaceCertStoreParameters- Overrides:
clonein classObject- Returns:
- the cloned instance.
-
getCollection
public Collection<?> getCollection()
Returns the collection where theCertificates andCRLs are retrieved from.- Returns:
- the collection where the
Certificates andCRLs will be retrieved from.
-
-