Code example for PSSParameterSpec

Methods: getMGFAlgorithm

0
    /** 
     * Test for <code>getMGFAlgorithm()</code> method 
     * Assertion: returns mask generation function algorithm name  
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies positive case.", 
        method = "getMGFAlgorithm", 
        args = {} 
    ) 
    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  
     */ 
    @TestTargetNew(