Package java.security.spec
Class DSAPublicKeySpec
java.lang.Object
java.security.spec.DSAPublicKeySpec
- All Implemented Interfaces:
KeySpec
public class DSAPublicKeySpec extends Object implements KeySpec
The parameters specifying a DSA public key.
-
Constructor Summary
Constructors Constructor Description DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g)Creates a newDSAPublicKeySpecwith the specified public key, prime, sub-prime and base. -
Method Summary
Modifier and Type Method Description BigIntegergetG()Returns the baseg.BigIntegergetP()Returns the primep.BigIntegergetQ()Returns the sub-primeq.BigIntegergetY()Returns the public key valuey.
-
Constructor Details
-
DSAPublicKeySpec
Creates a newDSAPublicKeySpecwith the specified public key, prime, sub-prime and base.- Parameters:
y- the public key valuey.p- the primep.q- the sub-primeq.g- the baseg.
-
-
Method Details
-
getG
Returns the baseg.- Returns:
- the base
g.
-
getP
Returns the primep.- Returns:
- the prime
p.
-
getQ
Returns the sub-primeq.- Returns:
- the sub-prime
q.
-
getY
Returns the public key valuey.- Returns:
- the public key value
y.
-