java.security.spec
Class DSAPrivateKeySpec

java.lang.Object
  extended by java.security.spec.DSAPrivateKeySpec
All Implemented Interfaces:
KeySpec

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
 BigInteger getG()
          Returns g for the DSA algorithm.
 BigInteger getP()
          Returns p for the DSA algorithm.
 BigInteger getQ()
          Returns p for the DSA algorithm.
 BigInteger getX()
          Returns private key x for the DSA algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getX

public BigInteger getX()
Returns private key x 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

getG

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

Returns:
Returns the requested BigInteger