Code example for PKIXBuilderParameters

Methods: getTargetCertConstraints

0
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        } 
        // both parameters are valid and non-null 
        PKIXParameters p =
            new PKIXBuilderParameters(taSet, new X509CertSelector());
        assertTrue("instanceOf", p instanceof PKIXBuilderParameters);
        assertNotNull("certSelector", p.getTargetCertConstraints());
    } 
 
    /** 
     * Test #2 for <code>PKIXBuilderParameters(Set, CertSelector)</code> 
     * constructor<br> 
     * Assertion: creates an instance of <code>PKIXBuilderParameters</code> 
     * @throws InvalidAlgorithmParameterException 
     */ 
    public final void testPKIXBuilderParametersSetCertSelector02() 
        throws InvalidAlgorithmParameterException { 
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");