Code example for PKIXParameters

Methods: getSigProvider, setSigProvider

0
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        } 
 
        PKIXParameters p = new PKIXParameters(taSet);
        String sigProviderName = "Some Provider";
        p.setSigProvider(sigProviderName);
        assertTrue("set", sigProviderName.equals(p.getSigProvider()));
        p.setSigProvider(null);
        assertNull("unset", p.getSigProvider());
    } 
 
    /** 
     * Test #1 for <code>getTargetCertConstraints()</code> method<br> 
     * Assertion: returns a <code>CertSelector</code> specifying 
     * the constraints on the target certificate (or <code>null</code>) 
     * @throws InvalidAlgorithmParameterException 
     */ 
    public final void testGetTargetCertConstraints01() throws Exception { 
        Set taSet = TestUtils.getTrustAnchorSet();