Package java.security.spec
Class DSAPrivateKeySpec
java.lang.Object
java.security.spec.DSAPrivateKeySpec
- All Implemented Interfaces:
KeySpec
public class DSAPrivateKeySpec extends Object implements KeySpec
The parameters specifying a DSA private key.
-
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
Modifier and Type Method Description BigIntegergetG()Returns the baseg.BigIntegergetP()Returns the primep.BigIntegergetQ()Returns the sub-primeq.BigIntegergetX()Returns the private keyx.
-
Constructor Details
-
DSAPrivateKeySpec
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 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.
-
getX
Returns the private keyx.- Returns:
- the private key
x.
-