Code example for DSAPrivateKeySpec

Methods: getG

0
 
    /** 
     * getG() test 
     */ 
    public final void testGetG() { 
        DSAPrivateKeySpec dpks = new DSAPrivateKeySpec(
                new BigInteger("1"),
                new BigInteger("2"),
                new BigInteger("3"),
                new BigInteger("4"));
         
        assertEquals(4, dpks.getG().intValue());
    } 
 
    /** 
     * getP() test 
     */ 
    public final void testGetP() { 
        DSAPrivateKeySpec dpks = new DSAPrivateKeySpec(
                new BigInteger("1"),
Connect your IDE to all the code out there  Get Codota for Java