Code example for PSSParameterSpec

Methods: getSaltLength

0
    /** 
     * 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());
    } 
 
    /** 
     * Test for <code>getTrailerField()</code> method<br> 
     * Assertion: returns trailer field value 
     */ 
    public final void testGetTrailerField() { 
        PSSParameterSpec pssps = new PSSParameterSpec("SHA-1", "MGF1",
                MGF1ParameterSpec.SHA1, 20, 1);
        assertEquals(1, pssps.getTrailerField());
    } 
 
    /**