java.security.spec
Class DSAPublicKeySpec

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

public class DSAPublicKeySpec
extends Object
implements KeySpec

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

Since:
JDK 1.2

Constructor Summary
DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g)
          Constructs a new DSAPublicKeySpec with the specified y, 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 getY()
          Returns public key y for the DSA algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSAPublicKeySpec

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

Parameters:
y - the public key
p - the prime
q - the sub-prime
g - the base
Method Detail

getY

public BigInteger getY()
Returns public key y 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