Code example for PKIXParameters

Methods: getCertStoressetCertStores

0
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        } 
 
        PKIXParameters p = new PKIXParameters(taSet);
        p.setCertStores(TestUtils.getCollectionCertStoresList());
        // check that list has been set 
        assertFalse(p.getCertStores().isEmpty());
    } 
 
    /** 
     * Test #2 for <code>setCertStores(List)</code> method<br> 
     * Assertion: list ... may be <code>null</code> 
     * @throws InvalidAlgorithmParameterException 
     */ 
    public final void testSetCertStores02() throws Exception { 
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        }