Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security.spec

Class DSAPublicKeySpec

java.lang.Object
|
+--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:Author:

Constructor Summary

DSAPublicKeySpec(java.math.BigInteger x, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)

Constructs a new DSAPublicKeySpec with the specified y, p, q, and g.

Method Summary

java.math.BigIntegergetG()

Returns g for the DSA algorithm.
java.math.BigIntegergetP()

Returns p for the DSA algorithm.
java.math.BigIntegergetQ()

Returns p for the DSA algorithm.
java.math.BigIntegergetY()

Returns public key y for the DSA algorithm.

Constructor Details

DSAPublicKeySpec

public DSAPublicKeySpec(java.math.BigInteger x, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)

Constructs a new DSAPublicKeySpec with the specified y, p, q, and g.

Parameters:


Method Details

getG

public BigInteger getG()

Returns g for the DSA algorithm.

Returns:


getP

public BigInteger getP()

Returns p for the DSA algorithm.

Returns:


getQ

public BigInteger getQ()

Returns p for the DSA algorithm.

Returns:


getY

public BigInteger getY()

Returns public key y for the DSA algorithm.

Returns: