Code example for PSSParameterSpec

Methods: getMGFParameters

0
    ) 
    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( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies positive case.", 
        method = "getMGFParameters", 
        args = {} 
    ) 
    public final void testGetMGFParameters01() { 
        PSSParameterSpec pssps = new PSSParameterSpec("SHA-1", "MGF1",
                MGF1ParameterSpec.SHA1, 20, 1);
        assertTrue(MGF1ParameterSpec.SHA1.equals(pssps.getMGFParameters()));