Code example for RSAOtherPrimeInfo

Methods: getPrime

0
     * Test for <code>getPrime()</code> method<br> 
     * Assertion: returns prime value 
     */ 
    public final void testGetPrime() { 
        RSAOtherPrimeInfo ropi = 
            new RSAOtherPrimeInfo(BigInteger.valueOf(1L),
                                  BigInteger.valueOf(2L),
                                  BigInteger.valueOf(3L));
        assertEquals(1L, ropi.getPrime().longValue());
    } 
 
    /** 
     * Test for <code>getExponent()</code> method<br> 
     * Assertion: returns prime exponent value 
     */ 
    public final void testGetExponent() { 
        RSAOtherPrimeInfo ropi = 
            new RSAOtherPrimeInfo(BigInteger.valueOf(1L),
                                  BigInteger.valueOf(2L),
                                  BigInteger.valueOf(3L));
        assertEquals(2L, ropi.getExponent().longValue());