|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.crypto.spec.DHParameterSpec
public class DHParameterSpec
The base set of parameters necessary to perform Diffie-Hellman key exchange. Each party in the key exchange shares these parameters.
Each set of parameters consists of a base generator
g, a prime modulus p, and an
optional length, in bits, of the private exponent.
See PKCS #3 - Diffie-Hellman Key Agreement Standard for more information.
KeyAgreement| Constructor Summary | |
|---|---|
DHParameterSpec(BigInteger p,
BigInteger g)
Create a new set of Diffie-Hellman parameters. |
|
DHParameterSpec(BigInteger p,
BigInteger g,
int l)
Create a new set of Diffie-Hellman parameters. |
|
| Method Summary | |
|---|---|
BigInteger |
getG()
Get the base generator, g. |
int |
getL()
Get the length of the private exponent, in bits. |
BigInteger |
getP()
Get the prime modulus, p. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DHParameterSpec(BigInteger p,
BigInteger g)
p - The prime modulus.g - The base generator.
public DHParameterSpec(BigInteger p,
BigInteger g,
int l)
p - The prime modulus.g - The base generator.l - The size of the private exponent, in bits.| Method Detail |
|---|
public BigInteger getG()
public int getL()
public BigInteger getP()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||