de.flexiprovider.core.dsa
Class DSAPrivateKeySpec

java.lang.Object
  |
  +--java.security.spec.DSAPrivateKeySpec
        |
        +--de.flexiprovider.core.dsa.DSAPrivateKeySpec
All Implemented Interfaces:
KeySpec, java.security.spec.KeySpec

public final class DSAPrivateKeySpec
extends java.security.spec.DSAPrivateKeySpec
implements KeySpec

This class specifies a DSA private key with its associated parameters.

See Also:
Key, java.security.KeyFactory, KeySpec

Constructor Summary
DSAPrivateKeySpec(java.math.BigInteger x, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)
          Create a new DSAPrivateKeySpec with the specified parameter values.
DSAPrivateKeySpec(java.security.spec.DSAPrivateKeySpec keySpec)
          Create a new DSAPrivateKeySpec out of the given DSAPrivateKeySpec.
DSAPrivateKeySpec(FlexiBigInt x, FlexiBigInt p, FlexiBigInt q, FlexiBigInt g)
          Create a new DSAPrivateKeySpec with the specified parameter values.
 
Method Summary
 FlexiBigInt getBaseG()
           
 FlexiBigInt getPrimeP()
           
 FlexiBigInt getPrimeQ()
           
 FlexiBigInt getValueX()
           
 
Methods inherited from class java.security.spec.DSAPrivateKeySpec
getG, getP, getQ, getX
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSAPrivateKeySpec

public DSAPrivateKeySpec(java.math.BigInteger x,
                         java.math.BigInteger p,
                         java.math.BigInteger q,
                         java.math.BigInteger g)
Create a new DSAPrivateKeySpec with the specified parameter values.
Parameters:
x - the private key
p - the prime
q - the sub-prime
g - the base

DSAPrivateKeySpec

public DSAPrivateKeySpec(java.security.spec.DSAPrivateKeySpec keySpec)
Create a new DSAPrivateKeySpec out of the given DSAPrivateKeySpec.
Parameters:
keySpec - the DSAPrivateKeySpec

DSAPrivateKeySpec

public DSAPrivateKeySpec(FlexiBigInt x,
                         FlexiBigInt p,
                         FlexiBigInt q,
                         FlexiBigInt g)
Create a new DSAPrivateKeySpec with the specified parameter values.
Parameters:
x - the private key
p - the prime
q - the sub-prime
g - the base
Method Detail

getValueX

public FlexiBigInt getValueX()
Returns:
the private key x.

getPrimeP

public FlexiBigInt getPrimeP()
Returns:
the prime p

getPrimeQ

public FlexiBigInt getPrimeQ()
Returns:
the sub-prime q

getBaseG

public FlexiBigInt getBaseG()
Returns:
the base g