Skip to content

Most visited

Recently visited

navigation
Added in API level 1

DHGenParameterSpec

public class DHGenParameterSpec
extends Object implements AlgorithmParameterSpec

java.lang.Object
   ↳ javax.crypto.spec.DHGenParameterSpec


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.

Inherited methods

From class java.lang.Object

Public constructors

DHGenParameterSpec

Added in API level 1
DHGenParameterSpec (int primeSize, 
                int exponentSize)

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

getExponentSize

Added in API level 1
int getExponentSize ()

Returns the size of the random exponent in bits.

Returns
int the size of the random exponent in bits.

getPrimeSize

Added in API level 1
int getPrimeSize ()

Returns the size of the prime modulus in bits.

Returns
int the size of the prime modulus in bits.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.