FileDocCategorySizeDatePackage
DSAPrivateKeySpec.javaAPI DocJava SE 5 API1735Fri Aug 26 14:57:18 BST 2005java.security.spec

DSAPrivateKeySpec

public class DSAPrivateKeySpec extends Object implements KeySpec
This class specifies a DSA private key with its associated parameters.
author
Jan Luehe
version
1.18, 12/19/03
see
java.security.Key
see
java.security.KeyFactory
see
KeySpec
see
DSAPublicKeySpec
see
PKCS8EncodedKeySpec
since
1.2

Fields Summary
private BigInteger
x
private BigInteger
p
private BigInteger
q
private BigInteger
g
Constructors Summary
public DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)
Creates a new DSAPrivateKeySpec with the specified parameter values.

param
x the private key.
param
p the prime.
param
q the sub-prime.
param
g the base.

	this.x = x;
	this.p = p;
	this.q = q;
	this.g = g;
    
Methods Summary
public java.math.BigIntegergetG()
Returns the base g.

return
the base g.

	return this.g;
    
public java.math.BigIntegergetP()
Returns the prime p.

return
the prime p.

	return this.p;
    
public java.math.BigIntegergetQ()
Returns the sub-prime q.

return
the sub-prime q.

	return this.q;
    
public java.math.BigIntegergetX()
Returns the private key x.

return
the private key x.

	return this.x;