Code example for PSSParameterSpec

Methods: getMGFAlgorithm

0
    /** 
     * Test for <code>getMGFAlgorithm()</code> method 
     * Assertion: returns mask generation function algorithm name  
     */ 
    public final void testGetMGFAlgorithm() { 
        PSSParameterSpec pssps = new PSSParameterSpec("SHA-1", "MGF1",
                MGF1ParameterSpec.SHA1, 20, 1);
        assertEquals("MGF1", pssps.getMGFAlgorithm());
    } 
 
    /** 
     * Test #1 for <code>getMGFParameters()</code> method 
     * Assertion: returns mask generation function parameters  
     */ 
    public final void testGetMGFParameters01() { 
        PSSParameterSpec pssps = new PSSParameterSpec("SHA-1", "MGF1",
                MGF1ParameterSpec.SHA1, 20, 1);
        assertTrue(MGF1ParameterSpec.SHA1.equals(pssps.getMGFParameters()));
    } 
     
    /**