public class DSAPublicKeySpec extends java.lang.Object implements KeySpec
| Constructor and Description |
|---|
DSAPublicKeySpec(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Constructs a new DSAPublicKeySpec with the specified y, 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 |
getY()
Returns public key y for the DSA algorithm.
|
public DSAPublicKeySpec(java.math.BigInteger y, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)
y - the public keyp - the primeq - the sub-primeg - the basepublic java.math.BigInteger getY()
public java.math.BigInteger getP()
public java.math.BigInteger getQ()
public java.math.BigInteger getG()