| java.lang.Object | |
| ↳ | javax.crypto.spec.DHGenParameterSpec |
The algorithm parameter specification for generating Diffie-Hellman parameters used in Diffie-Hellman key agreement.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Creates a new
DHGenParameterSpec
instance with the specified
parameters.
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Returns the size of the
random exponent
in bits.
|
||||||||||
|
|
Returns the size of the
prime modulus
in bits.
|
||||||||||
|
[Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
Creates a new
DHGenParameterSpec
instance with the specified
parameters.
| primeSize | the size of the prime modulus in bits. |
|---|---|
| exponentSize | the size of the random exponent in bits. |
Returns the size of the random exponent in bits.
Returns the size of the prime modulus in bits.