Code example for PKIXParameters

Methods: isPolicyMappingInhibited, setPolicyMappingInhibited

0
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        } 
 
        PKIXParameters p = new PKIXParameters(taSet);
        p.setPolicyMappingInhibited(true);
        assertTrue("setTrue", p.isPolicyMappingInhibited());
        p.setPolicyMappingInhibited(false);
        assertFalse("setFalse", p.isPolicyMappingInhibited());
    } 
 
    /** 
     * Test for <code>isPolicyMappingInhibited()</code> method<br> 
     * Assertion: returns the current value of the RevocationEnabled flag 
     * Assertion: when a <code>PKIXParameters</code> object is created, 
     * this flag is set to true 
     * @throws InvalidAlgorithmParameterException 
     */ 
    public final void testIsRevocationEnabled() throws Exception { 
        Set taSet = TestUtils.getTrustAnchorSet();