Code example for PKIXParameters

Methods: addCertStoregetCertStores

0
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        } 
 
        PKIXParameters p = new PKIXParameters(taSet);
        p.addCertStore(null);
        assertTrue(p.getCertStores().isEmpty());
    } 
 
    /** 
     * Test #1 for <code>getCertPathCheckers()</code> method<br> 
     * Assertion: list ... may be empty, but not <code>null</code> 
     * @throws InvalidAlgorithmParameterException 
     */ 
    public final void testGetCertPathCheckers01() throws Exception { 
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        }