Code example for RSAKeyGenParameterSpec

Methods: getPublicExponent

0
 
    /** 
     * Test for <code>getKeySize()</code> method<br> 
     * Assertion: returns key size value 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getKeysize", 
        args = {} 
    ) 
    public final void testGetKeysize() { 
        RSAKeyGenParameterSpec rkgps =
            new RSAKeyGenParameterSpec(512, BigInteger.valueOf(0L));
        assertEquals(512, rkgps.getKeysize());
    } 
 
    /** 
     * Test for <code>getPublicExponent()</code> method<br> 
     * Assertion: returns public exponent value 
     */