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

Class DSAPrivateKeySpec

java.lang.Object
|
+--java.security.spec.DSAPrivateKeySpec

All Implemented Interfaces:

KeySpec


public class DSAPrivateKeySpec

extends Object

implements KeySpec

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

Since:Author:

Constructor Summary

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

Constructs a new DSAPrivateKeySpec with the specified x, 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.BigIntegergetX()

Returns private key x for the DSA algorithm.

Constructor Details

DSAPrivateKeySpec

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

Constructs a new DSAPrivateKeySpec with the specified x, 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:


getX

public BigInteger getX()

Returns private key x for the DSA algorithm.

Returns: