Code example for PSSParameterSpec

Methods: getMGFAlgorithm

0
    /** 
     * Test for <code>DEFAULT</code> field<br> 
     * Assertion: default mask generation function algorithm name is "MGF1" 
     */ 
    public final void testDEFAULTmgfName() { 
        assertEquals("MGF1", PSSParameterSpec.DEFAULT.getMGFAlgorithm());
    } 
 
    /** 
     * Test for <code>DEFAULT</code> field<br> 
     * Assertion: default algorithm parameters for mask 
     * generation function are <code>MGF1ParameterSpec.SHA1</code> 
     */ 
    public final void testDEFAULTmgfSpec() { 
        assertTrue(MGF1ParameterSpec.SHA1.equals(PSSParameterSpec.DEFAULT.getMGFParameters()));        
    } 
 
    /** 
     * Test for <code>DEFAULT</code> field<br> 
     * Assertion: default salt length value is 20 
     */