Code example for RSAKeyGenParameterSpec

Methods: getKeysize

0
     * Test for <code>getKeySize()</code> method<br> 
     * Assertion: returns key size value 
     */ 
    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 
     */ 
    public final void testGetPublicExponent() { 
        RSAKeyGenParameterSpec rkgps =
            new RSAKeyGenParameterSpec(512, BigInteger.valueOf(0L));
        assertEquals(0, rkgps.getPublicExponent().intValue());
    } 
     
    /** 
Connect your IDE to all the code out there  Get Codota for Java