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

DSAPublicKeySpec

public class DSAPublicKeySpec extends Object implements KeySpec
This class specifies a DSA public 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
DSAPrivateKeySpec
see
X509EncodedKeySpec
since
1.2

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

param
y the public key.
param
p the prime.
param
q the sub-prime.
param
g the base.

	this.y = y;
	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.BigIntegergetY()
Returns the public key y.

return
the public key y.

	return this.y;