Package java.security.spec
Class DSAPublicKeySpec
- java.lang.Object
-
- java.security.spec.DSAPublicKeySpec
-
-
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
All Methods Instance Methods Concrete Methods 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 Detail
-
DSAPublicKeySpec
public DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g)
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 Detail
-
getG
public BigInteger getG()
Returns the baseg.- Returns:
- the base
g.
-
getP
public BigInteger getP()
Returns the primep.- Returns:
- the prime
p.
-
getQ
public BigInteger getQ()
Returns the sub-primeq.- Returns:
- the sub-prime
q.
-
getY
public BigInteger getY()
Returns the public key valuey.- Returns:
- the public key value
y.
-
-