Code example for PKIXParameters

Methods: getTargetCertConstraints

0
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        } 
 
        PKIXParameters p = new PKIXParameters(taSet);
        assertNull(p.getTargetCertConstraints());
    } 
 
    /** 
     * Test #2 for <code>getTargetCertConstraints()</code> method<br> 
     * Assertion: note that the <code>CertSelector</code> returned 
     * is cloned to protect against subsequent modifications 
     * @throws InvalidAlgorithmParameterException 
     * @throws IOException 
     */ 
    public final void testGetTargetCertConstraints02() throws Exception { 
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        }