Code example for CollectionCertStoreParameters

Methods: clonegetCollection

0
     */ 
    public final void testClone02() { 
        Vector certificates = new Vector();
        certificates.add(new MyCertificate("TEST", new byte[] {(byte)4}));
        CollectionCertStoreParameters cp1 =
            new CollectionCertStoreParameters(certificates);
        CollectionCertStoreParameters cp2 =
            (CollectionCertStoreParameters)cp1.clone();
        // 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();