Code example for PKIXCertPathValidatorResult

Methods: getPublicKey

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