Creates a new DHPublicKeySpec instance with the specified public value y, the prime modulus p and the base generator g.paramy the public value.paramp the prime modulus.paramg the base generator. this.y = y; this.p = p; this.g = g;
DHPublicKeySpec
y
p
g
this.y = y; this.p = p; this.g = g;
Returns the base generator g;returnthe base generator g; return g;
return g;
Returns the prime modulus p.returnthe prime modulus p. return p;
return p;
Returns the public value y.returnthe public value y. return y;
return y;