Code example for PolicyQualifierInfo

Methods: getPolicyQualifier

0
        // pass valid array 
        PolicyQualifierInfo i = new PolicyQualifierInfo(encodingCopy);
        // get encoding 
        byte[] encodingRet = i.getEncoded();
        // modify returned array 
        encodingRet[0] = (byte)0;
        // get encoding again 
        byte[] encodingRet1 = i.getEncoded();
        // check that above modification did not change 
        // internal state of the PolicyQualifierInfo instance 
        assertTrue(Arrays.equals(encoding, encodingRet1));
    } 
 
    /** 
     * Test #1 for <code>getPolicyQualifier()</code> method 
     * Assertion: Returns the ASN.1 DER encoded form of 
     * this <code>PolicyQualifierInfo</code> 
     *  
     * @throws IOException 
     */ 
    @TestTargetNew(