org.bouncycastle.jce.spec

Class ElGamalPrivateKeySpec

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.bouncycastle.jce.spec.ElGamalKeySpec

getParams

Constructor Details

ElGamalPrivateKeySpec

public ElGamalPrivateKeySpec(BigInteger x,
                             ElGamalParameterSpec spec)

Method Details

getX

public BigInteger getX()
Returns the private value x.

Returns:
the private value x