Code example for RSAPublicKeySpec

Methods: getModulus

0
     * Test #2 for <code>RSAPublicKeySpec</code> constructor 
     * Assertion: Constructs <code>RSAPublicKeySpec</code> 
     * object using valid parameters 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies null as parameters.", 
        method = "RSAPublicKeySpec", 
        args = {java.math.BigInteger.class, java.math.BigInteger.class}
    ) 
    public final void testRSAPublicKeySpec02() { 
        KeySpec ks =
            new RSAPublicKeySpec(null, null);
 
        assertTrue(ks instanceof RSAPublicKeySpec);
    } 
     
    /** 
     * Test for <code>getModulus()</code> method<br> 
     * Assertion: returns modulus 
     */