Code example for PolicyQualifierInfo

Methods: getPolicyQualifierId

0
    } 
 
    /** 
     * Test #2 for <code>getPolicyQualifier()</code> method 
     * Assertion: a copy is returned each time 
     *  
     * @throws IOException 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getPolicyQualifier", 
        args = {} 
    ) 
    public final void testGetPolicyQualifier02() throws IOException { 
        // get valid encoding 
        byte[] encoding = getDerEncoding();
        // get policy qualifier encoding 
        byte[] pqEncoding = new byte[28];
        System.arraycopy(encoding, 12, pqEncoding, 0, pqEncoding.length);
        // pass valid array