Code example for DSAPublicKeySpec

Methods: getP

0
 
    /** 
     * Test for <code>getP</code> method  
     */ 
    public final void testGetP() { 
        DSAPublicKeySpec dpks = new DSAPublicKeySpec(
                new BigInteger("1"), // y
                new BigInteger("2"), // p
                new BigInteger("3"), // q
                new BigInteger("4"));// g
         
        assertEquals(2, dpks.getP().intValue());
    } 
 
    /** 
     * Test for <code>getQ</code> method  
     */ 
    public final void testGetQ() { 
        DSAPublicKeySpec dpks = new DSAPublicKeySpec(
                new BigInteger("1"), // y
                new BigInteger("2"), // p