public class DHPublicKeySpec extends Object implements KeySpec
DHPrivateKeySpec| Constructor and Description |
|---|
DHPublicKeySpec(BigInteger y,
BigInteger p,
BigInteger g)
Create a new Diffie-Hellman public key spec.
|
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getG()
Get the base generator.
|
BigInteger |
getP()
Get the prime modulus.
|
BigInteger |
getY()
Get the public value.
|
public DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g)
y - The public value.p - The prime modulus.g - The base generator.public BigInteger getG()
public BigInteger getP()
public BigInteger getY()