Code example for RSAPrivateKeySpec

Methods: getPrivateExponent

0
     * Test for <code>getPrivateExponent()</code> method<br> 
     * Assertion: returns private exponent 
     */ 
    public final void testGetPrivateExponent() { 
        RSAPrivateKeySpec rpks =
            new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L),
                                  BigInteger.valueOf(3L));
        assertEquals(3L, rpks.getPrivateExponent().longValue());
    } 
 
}