Code example for PSSParameterSpec

Methods: getMGFParameters

0
     * Assertion: returns <code>null</code> 
     * if <code>null</code> had been passed as 
     * AlgorithmParameterSpec parameter to the ctor   
     */ 
    public final void testGetMGFParameters02() { 
        PSSParameterSpec pssps = new PSSParameterSpec("SHA-1", "MGF1",
                null, 20, 1); 
        assertNull(pssps.getMGFParameters());
    } 
 
 
    /** 
     * Test for <code>getSaltLength()</code> method<br> 
     * Assertion: returns salt length value 
     */ 
    public final void testGetSaltLength() { 
        PSSParameterSpec pssps = new PSSParameterSpec(20);
        assertEquals(20, pssps.getSaltLength());
    } 
 
    /**