Android APIs
public class

DHGenParameterSpec

extends Object
implements AlgorithmParameterSpec
java.lang.Object
   ↳ javax.crypto.spec.DHGenParameterSpec

Class Overview

The algorithm parameter specification for generating Diffie-Hellman parameters used in Diffie-Hellman key agreement.

Summary

Public Constructors
DHGenParameterSpec(int primeSize, int exponentSize)
Creates a new DHGenParameterSpec instance with the specified parameters.
Public Methods
int getExponentSize()
Returns the size of the random exponent in bits.
int getPrimeSize()
Returns the size of the prime modulus in bits.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DHGenParameterSpec (int primeSize, int exponentSize)

Added in API level 1

Creates a new DHGenParameterSpec instance with the specified parameters.

Parameters
primeSize int: the size of the prime modulus in bits.
exponentSize int: the size of the random exponent in bits.

Public Methods

public int getExponentSize ()

Added in API level 1

Returns the size of the random exponent in bits.

Returns
int the size of the random exponent in bits.

public int getPrimeSize ()

Added in API level 1

Returns the size of the prime modulus in bits.

Returns
int the size of the prime modulus in bits.