Code example for PKIXParameters

Methods: getPolicyQualifiersRejected, setPolicyQualifiersRejected

0
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        } 
 
        PKIXParameters p = new PKIXParameters(taSet);
        p.setPolicyQualifiersRejected(false);
        assertFalse("setFalse",p.getPolicyQualifiersRejected());
        p.setPolicyQualifiersRejected(true);
        assertTrue("setTrue",p.getPolicyQualifiersRejected());
    } 
 
    /** 
     * Test for <code>isAnyPolicyInhibited()</code> method<br> 
     * Assertion: returns <code>true</code> if the any policy 
     * OID is inhibited, <code>false</code> otherwise<br> 
     * Assertion: By default, the any policy OID is not inhibited 
     * (<code>isAnyPolicyInhibited()</code> returns false). 
     * @throws InvalidAlgorithmParameterException 
     */ 
    public final void testIsAnyPolicyInhibited() throws Exception {