Code example for PSSParameterSpec

Methods: getTrailerField

0
    } 
 
    /** 
     * Test for <code>getDigestAlgorithm()</code> method 
     * Assertion: returns message digest algorithm name  
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies positive case.", 
        method = "getDigestAlgorithm", 
        args = {} 
    ) 
    public final void testGetDigestAlgorithm() { 
        PSSParameterSpec pssps = new PSSParameterSpec("SHA-1", "MGF1",
                MGF1ParameterSpec.SHA1, 20, 1);
        assertEquals("SHA-1", pssps.getDigestAlgorithm());
    } 
 
    /** 
     * Test for <code>getMGFAlgorithm()</code> method 
     * Assertion: returns mask generation function algorithm name