java.security.spec

Class DSAPublicKeySpec

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
BigIntegergetG()
Returns g for the DSA algorithm.
BigIntegergetP()
Returns p for the DSA algorithm.
BigIntegergetQ()
Returns p for the DSA algorithm.
BigIntegergetY()
Returns public key y for the DSA algorithm.

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

getG

public BigInteger getG()
Returns g 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

getY

public BigInteger getY()
Returns public key y for the DSA algorithm.

Returns: Returns the requested BigInteger