Code example for RSAPrivateCrtKeySpec

Methods: getPrivateExponent

0
        method = "getPrimeQ", 
        args = {} 
    ) 
    public final void testGetPrimeQ() { 
        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.valueOf(5L),
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE);
        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeQ()));
    } 
 
    /** 
     * Test for <code>getPublicExponent()</code> method<br> 
     * Assertion: returns public exponent 
     */ 
    @TestTargetNew(