java.security.spec

Class DSAPrivateKeySpec

public class DSAPrivateKeySpec extends Object implements KeySpec

DSA Private Key class Specification. Used to maintain the DSA Private Keys.

Since: JDK 1.2

Constructor Summary
DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)
Constructs a new DSAPrivateKeySpec with the specified x, p, q, and g.
Method Summary
BigIntegergetG()
Returns g for the DSA algorithm.
BigIntegergetP()
Returns p for the DSA algorithm.
BigIntegergetQ()
Returns p for the DSA algorithm.
BigIntegergetX()
Returns private key x for the DSA algorithm.

Constructor Detail

DSAPrivateKeySpec

public DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)
Constructs a new DSAPrivateKeySpec with the specified x, p, q, and g.

Parameters: x the private key p the prime q the sub-prime g the base

Method Detail

getG

public BigInteger getG()
Returns g for the DSA algorithm.

Returns: Returns the requested BigInteger

getP

public BigInteger getP()
Returns p for the DSA algorithm.

Returns: Returns the requested BigInteger

getQ

public BigInteger getQ()
Returns p for the DSA algorithm.

Returns: Returns the requested BigInteger

getX

public BigInteger getX()
Returns private key x for the DSA algorithm.

Returns: Returns the requested BigInteger