javax.crypto.spec
public class DHPublicKeySpec extends Object implements KeySpec
Since: 1.4
See Also: DHPrivateKeySpec
Constructor Summary | |
---|---|
DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g)
Create a new Diffie-Hellman public key spec.
|
Method Summary | |
---|---|
BigInteger | getG()
Get the base generator.
|
BigInteger | getP()
Get the prime modulus.
|
BigInteger | getY()
Get the public value.
|
Parameters: y The public value. p The prime modulus. g The base generator.
Returns: The base generator.
Returns: The prime modulus.
Returns: The public value.