Constructor and Description |
---|
DHPublicKeySpec(BigInteger y,
BigInteger p,
BigInteger g)
Creates a new
DHPublicKeySpec instance with the specified
public value y , the prime modulus
p and the base generator g . |
Modifier and Type | Method and Description |
---|---|
BigInteger |
getG()
Returns the base generator
g ; |
BigInteger |
getP()
Returns the prime modulus
p . |
BigInteger |
getY()
Returns the public value
y . |
public DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g)
DHPublicKeySpec
instance with the specified
public value y
, the prime modulus
p
and the base generator g
.y
- the public value.p
- the prime modulus.g
- the base generator.public BigInteger getY()
y
.y
.public BigInteger getP()
p
.p
.public BigInteger getG()
g
;g
;