01: package org.bouncycastle.jce.spec;
02:
03: import java.math.BigInteger;
04:
05: /**
06: * This class specifies an ElGamal private key with its associated parameters.
07: *
08: * @see ElGamalPublicKeySpec
09: */
10: public class ElGamalPrivateKeySpec extends ElGamalKeySpec {
11: private BigInteger x;
12:
13: public ElGamalPrivateKeySpec(BigInteger x, ElGamalParameterSpec spec) {
14: super (spec);
15:
16: this .x = x;
17: }
18:
19: /**
20: * Returns the private value <code>x</code>.
21: *
22: * @return the private value <code>x</code>
23: */
24: public BigInteger getX() {
25: return x;
26: }
27: }
|