org.gudy.bouncycastle.jce.spec
Class ElGamalPrivateKeySpec

java.lang.Object
  extended by org.gudy.bouncycastle.jce.spec.ElGamalKeySpec
      extended by org.gudy.bouncycastle.jce.spec.ElGamalPrivateKeySpec
All Implemented Interfaces:
KeySpec

public class ElGamalPrivateKeySpec
extends ElGamalKeySpec

This class specifies an ElGamal private key with its associated parameters.

See Also:
ElGamalPublicKeySpec

Constructor Summary
ElGamalPrivateKeySpec(BigInteger x, ElGamalParameterSpec spec)
           
 
Method Summary
 BigInteger getX()
          Returns the private value x.
 
Methods inherited from class org.gudy.bouncycastle.jce.spec.ElGamalKeySpec
getParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElGamalPrivateKeySpec

public ElGamalPrivateKeySpec(BigInteger x,
                             ElGamalParameterSpec spec)
Method Detail

getX

public BigInteger getX()
Returns the private value x.

Returns:
the private value x