java.lang.Object | |
↳ | javax.crypto.spec.DHParameterSpec |
The algorithm parameter specification for the Diffie-Hellman algorithm.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates a new
DHParameterSpec
instance with the specified
prime modulus
and
base generator
.
|
||||||||||
|
Creates a new
DHParameterSpec
instance with the specified
prime modulus
,
base generator
and size (in bits) of the
random exponent
.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns the
base generator
of this parameter specification.
|
||||||||||
|
Returns the size (in bits) of the
random exponent
.
|
||||||||||
|
Returns the
prime modulus
of this parameter specification.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new
DHParameterSpec
instance with the specified
prime modulus
and
base generator
.
p | the prime modulus. |
---|---|
g | the base generator. |
Creates a new
DHParameterSpec
instance with the specified
prime modulus
,
base generator
and size (in bits) of the
random exponent
.
p | the prime modulus. |
---|---|
g | the base generator. |
l | the size of the random exponent (in bits). |
Returns the base generator of this parameter specification.
Returns the size (in bits) of the random exponent .
Returns the prime modulus of this parameter specification.