Code example for RSAPrivateCrtKeySpec

Methods: getPrimeP

0
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getPrimeExponentP", 
        args = {} 
    ) 
    public final void testGetPrimeExponentP() { 
        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.valueOf(5L),
                BigInteger.ONE,
                BigInteger.ONE);
        assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentP()));
    } 
 
    /** 
     * Test for <code>getPrimeExponentQ()</code> method<br>