Package java.security.spec
Class DSAPrivateKeySpec
- java.lang.Object
-
- java.security.spec.DSAPrivateKeySpec
-
-
Constructor Summary
Constructors Constructor Description DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)Creates a newDSAPrivateKeySpecwith the specified private 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.BigIntegergetX()Returns the private keyx.
-
-
-
Constructor Detail
-
DSAPrivateKeySpec
public DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)
Creates a newDSAPrivateKeySpecwith the specified private key, prime, sub-prime and base.- Parameters:
x- the private keyx.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.
-
getX
public BigInteger getX()
Returns the private keyx.- Returns:
- the private key
x.
-
-