Code example for PSSParameterSpec

Methods: getTrailerField

0
    /** 
     * Test for <code>getTrailerField()</code> method<br> 
     * Assertion: returns trailer field value 
     */ 
    public final void testGetTrailerField() { 
        PSSParameterSpec pssps = new PSSParameterSpec("SHA-1", "MGF1",
                MGF1ParameterSpec.SHA1, 20, 1);
        assertEquals(1, pssps.getTrailerField());
    } 
 
    /** 
     * Test for <code>DEFAULT</code> field<br> 
     * Assertion: default message digest algorithm name is "SHA-1" 
     */ 
    public final void testDEFAULTmdName() { 
        assertEquals("SHA-1", PSSParameterSpec.DEFAULT.getDigestAlgorithm());
    } 
 
    /** 
     * Test for <code>DEFAULT</code> field<br> 
     * Assertion: default mask generation function algorithm name is "MGF1"