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 type
CertStore instance.
It is used to specify the Collection where the CertStore will
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
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 Details
-
CollectionCertStoreParameters
public CollectionCertStoreParameters()Creates a newCollectionCertStoreParameterswithout a collection.The default collection is an empty and unmodifiable
Collection. -
CollectionCertStoreParameters
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 Details
-
clone
Clones thisCollectionCertStoreParametersinstance, but not the underlying collection.- Specified by:
clonein interfaceCertStoreParameters- Overrides:
clonein classObject- Returns:
- the cloned instance.
-
getCollection
Returns the collection where theCertificates andCRLs are retrieved from.- Returns:
- the collection where the
Certificates andCRLs will be retrieved from.
-
toString
Returns the string representation of this instance.
-