Code example for DSAPrivateKeySpec

Methods: getP

0
 
    /** 
     * getP() test 
     */ 
    public final void testGetP() { 
        DSAPrivateKeySpec dpks = new DSAPrivateKeySpec(
                new BigInteger("1"),
                new BigInteger("2"),
                new BigInteger("3"),
                new BigInteger("4"));
         
        assertEquals(2, dpks.getP().intValue());
    } 
 
    /** 
     * getQ() test 
     */ 
    public final void testGetQ() { 
        DSAPrivateKeySpec dpks = new DSAPrivateKeySpec(
                new BigInteger("1"),
Stop searching for code, let great code find you!  Add Codota to your java IDE