Code example for CollectionCertStoreParameters

0
            { 
                return CertStore.getInstance(type, new CollectionCertStoreParameters(certsAndcrls), provider);
            } 
            else 
            { 
                return CertStore.getInstance(type, new CollectionCertStoreParameters(certsAndcrls));
            } 
        } 
        catch (InvalidAlgorithmParameterException e)
        { 
            throw new CMSException("can't setup the CertStore", e);
        } 
    } 
 
    private void addCertsFromSet(List certs, ASN1Set certSet, Provider provider)
        throws CMSException 
    { 
        CertificateFactory cf;
 
        try 
        {