Code example for PKIXBuilderParameters

Methods: getTargetCertConstraints

0
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        } 
        // both parameters are valid but CertSelector is null 
        PKIXParameters p = new PKIXBuilderParameters(taSet, null);
        assertTrue("instanceOf", p instanceof PKIXBuilderParameters);
        assertNull("certSelector", p.getTargetCertConstraints());
    } 
 
    /** 
     * Test #3 for <code>PKIXBuilderParameters(Set, CertSelector)</code> 
     * constructor<br> 
     * Assertion: ... the <code>Set</code> is copied to protect against 
     * subsequent modifications 
     * @throws InvalidAlgorithmParameterException 
     */ 
    public final void testPKIXBuilderParametersSetCertSelector03() 
        throws InvalidAlgorithmParameterException { 
        Set taSet = TestUtils.getTrustAnchorSet();
Experience pair programming with AI  Get Codota for Java