Class 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 Detail

      • CollectionCertStoreParameters

        public CollectionCertStoreParameters()
        Creates a new CollectionCertStoreParameters without a collection.

        The default collection is an empty and unmodifiable Collection.

      • CollectionCertStoreParameters

        public CollectionCertStoreParameters​(Collection<?> collection)
        Creates a new CollectionCertStoreParameters with the specified collection.

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

        Parameters:
        collection - the collection where the Certificates and CRLs will be retrieved from.
        Throws:
        NullPointerException - if collection is null.
    • Method Detail

      • clone

        public Object clone()
        Clones this CollectionCertStoreParameters instance, but not the underlying collection.
        Specified by:
        clone in interface CertStoreParameters
        Overrides:
        clone in class Object
        Returns:
        the cloned instance.
      • getCollection

        public Collection<?> getCollection()
        Returns the collection where the Certificates and CRLs are retrieved from.
        Returns:
        the collection where the Certificates and CRLs will be retrieved from.
      • toString

        public String toString()
        Returns the string representation of this instance.
        Overrides:
        toString in class Object
        Returns:
        the string representation of this instance.