Code example for PSSParameterSpec

Methods: getDigestAlgorithm

0
        method = "PSSParameterSpec", 
        args = {java.lang.String.class, java.lang.String.class, java.security.spec.AlgorithmParameterSpec.class, int.class, int.class}
    ) 
    public final void testPSSParameterSpec0204() { 
        try { 
            new PSSParameterSpec("SHA-1", "MGF1",
                    MGF1ParameterSpec.SHA1, -20, 1);
            fail("Expected IAE not thrown");
        } catch (IllegalArgumentException e) {
        } 
    } 
 
    /** 
     * Test #5 for 
     * <code> 
     * PSSParameterSpec(String,String,AlgorithmParameterSpec,int,int) 
     * </code> ctor<br> 
     * Assertion: 
     * throws <code>IllegalArgumentException</code> 
     * if <code>trailerField</code> less than 0 
     */