Code example for PSSParameterSpec

Methods: getMGFParameters

0
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "PSSParameterSpec", 
        args = {java.lang.String.class, java.lang.String.class, java.security.spec.AlgorithmParameterSpec.class, int.class, int.class}
    ) 
    public final void testPSSParameterSpec0205() { 
        try { 
            new PSSParameterSpec("SHA-1", "MGF1",
                    MGF1ParameterSpec.SHA1, 20, -1);
            fail("Expected IAE not thrown");
        } catch (IllegalArgumentException e) {
        } 
    } 
 
    /** 
     * Test #6 for 
     * <code> 
     * PSSParameterSpec(String,String,AlgorithmParameterSpec,int,int) 
     * </code> ctor<br>