Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 the size of the prime modulus in bits.
exponentSize 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
  • 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
  • the size of the prime modulus in bits.