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