Package net.i2p.crypto.elgamal.spec
Class ElGamalPrivateKeySpec
- java.lang.Object
-
- net.i2p.crypto.elgamal.spec.ElGamalKeySpec
-
- net.i2p.crypto.elgamal.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
Constructors Constructor Description ElGamalPrivateKeySpec(BigInteger x, ElGamalParameterSpec spec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
getX()
Returns the private valuex
.-
Methods inherited from class net.i2p.crypto.elgamal.spec.ElGamalKeySpec
getParams
-
-
-
-
Constructor Detail
-
ElGamalPrivateKeySpec
public ElGamalPrivateKeySpec(BigInteger x, ElGamalParameterSpec spec)
-
-
Method Detail
-
getX
public BigInteger getX()
Returns the private valuex
.- Returns:
- the private value
x
-
-