Code example for PKIXCertPathValidatorResult

Methods: getPolicyTree

0
    /** 
     * Test for <code>getPublicKey()</code> method<br> 
     * Assertion: returns the subject's public key (never <code>null</code>) 
     * @throws NoSuchAlgorithmException 
     * @throws InvalidKeySpecException 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getPublicKey", 
        args = {} 
    ) 
    public final void testGetPublicKey() throws Exception { 
        TrustAnchor ta = TestUtils.getTrustAnchor();
        if (ta == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor)");
        } 
 
        PublicKey pk = testPublicKey;
        PKIXCertPathValidatorResult vr =
            new PKIXCertPathValidatorResult(