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