Code example for DSAPrivateKeySpec

Methods: getQ

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