com.ibm.security12.java.security.spec
Class DSAPrivateKeySpec

java.lang.Object
  |
  +--com.ibm.security12.java.security.spec.DSAPrivateKeySpec

public class DSAPrivateKeySpec
extends Object
implements KeySpec

This class specifies a DSA private key with its associated parameters.

Since:
JDK1.2
Version:
1.9, 98/07/22
Author:
Jan Luehe
See Also:
com.ibm.security12.java.security.Key, KeyFactory, KeySpec, DSAPublicKeySpec, PKCS8EncodedKeySpec

Constructor Summary
DSAPrivateKeySpec(java.math.BigInteger x, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)
          Creates a new DSAPrivateKeySpec with the specified parameter values.
 
Method Summary
 java.math.BigInteger getG()
          Returns the base g.
 java.math.BigInteger getP()
          Returns the prime p.
 java.math.BigInteger getQ()
          Returns the sub-prime q.
 java.math.BigInteger getX()
          Returns the private key x.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSAPrivateKeySpec

public DSAPrivateKeySpec(java.math.BigInteger x,
                         java.math.BigInteger p,
                         java.math.BigInteger q,
                         java.math.BigInteger g)
Creates a new DSAPrivateKeySpec with the specified parameter values.
Parameters:
x - the private key.
p - the prime.
q - the sub-prime.
g - the base.
Method Detail

getX

public java.math.BigInteger getX()
Returns the private key x.
Returns:
the private key x.

getP

public java.math.BigInteger getP()
Returns the prime p.
Returns:
the prime p.

getQ

public java.math.BigInteger getQ()
Returns the sub-prime q.
Returns:
the sub-prime q.

getG

public java.math.BigInteger getG()
Returns the base g.
Returns:
the base g.