org.bouncycastle.jce.spec

Class ElGamalPrivateKeySpec

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
BigIntegergetX()
Returns the private value x.

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