Code example for RSAPrivateCrtKeySpec

Methods: getPrimeExponentQ

0
    public final void testGetCrtCoefficient() { 
        RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec(
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.ONE,
                BigInteger.valueOf(5L));
        assertTrue(BigInteger.valueOf(5L).equals(ks.getCrtCoefficient()));
    } 
 
    /** 
     * Test for <code>getPrimeExponentP()</code> method<br> 
     * Assertion: returns prime exponent P 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getPrimeExponentP",