javax.crypto.spec

Class DHGenParameterSpec

public class DHGenParameterSpec extends Object implements AlgorithmParameterSpec

This class represents the parameters needed for generating Diffie-Hellman parameters.

Since: 1.4

See Also: DHParameterSpec

Constructor Summary
DHGenParameterSpec(int primeSize, int exponentSize)
Create a new Diffie-Hellman parameter generator spec.
Method Summary
intgetExponentSize()
Get the size of the exponent, in bits.
intgetPrimeSize()
Get the size of the prime, in bits.

Constructor Detail

DHGenParameterSpec

public DHGenParameterSpec(int primeSize, int exponentSize)
Create a new Diffie-Hellman parameter generator spec.

Parameters: primeSize The size of the prime, in bits. exponentSize The size of the exponent, in bits.

Method Detail

getExponentSize

public int getExponentSize()
Get the size of the exponent, in bits.

Returns: The exponent size.

getPrimeSize

public int getPrimeSize()
Get the size of the prime, in bits.

Returns: The prime size.