Code example for CollectionCertStoreParameters

Methods: clonegetCollection

    public final void testClone02() { 
        Vector certificates = new Vector();
        certificates.add(new MyCertificate("TEST", new byte[] {(byte)4}));
        CollectionCertStoreParameters cp1 =
            new CollectionCertStoreParameters(certificates);
        CollectionCertStoreParameters cp2 =
        // check that both objects hold the same reference 
        assertTrue(cp1.getCollection() == cp2.getCollection());
     * Test #3 for <code>clone()</code> method<br> 
     * Assertion: ...only a reference to the <code>Collection</code> 
     * is copied, and not the contents 
    public final void testClone03() { 
        CollectionCertStoreParameters cp1 =
            new CollectionCertStoreParameters();
Connect your IDE to all the code out there  Get Codota for Java