public class DSAPrivateKeySpec extends java.lang.Object implements KeySpec
| Constructor and Description |
|---|
DSAPrivateKeySpec(java.math.BigInteger x,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Constructs a new DSAPrivateKeySpec with the specified x, p, q, and g.
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getG()
Returns g for the DSA algorithm.
|
java.math.BigInteger |
getP()
Returns p for the DSA algorithm.
|
java.math.BigInteger |
getQ()
Returns p for the DSA algorithm.
|
java.math.BigInteger |
getX()
Returns private key x for the DSA algorithm.
|
public DSAPrivateKeySpec(java.math.BigInteger x, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)
x - the private keyp - the primeq - the sub-primeg - the basepublic java.math.BigInteger getX()
public java.math.BigInteger getP()
public java.math.BigInteger getQ()
public java.math.BigInteger getG()