Top Description Fields Constructors Methods
org.bouncycastle.tls.crypto

public Class DHGroup

extends Object
Class Inheritance
Imports
java.math.BigInteger

Carrier class for Diffie-Hellman group parameters.

Field Summary

Modifier and TypeField and Description
private final BigInteger
g

private final int
l

private final BigInteger
p

private final BigInteger
q

Constructor Summary

AccessConstructor and Description
public
DHGroup(BigInteger
the prime modulus.
p
,
BigInteger
specifies the prime factor of (p - 1).
q
,
BigInteger
the base generator.
g
,
int l)

Base constructor with the prime factor of (p - 1).

Method Summary

Modifier and TypeMethod and Description
public BigInteger
getG()

public int
getL()

public BigInteger
getP()

public BigInteger
getQ()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

gback to summary
private final BigInteger g
lback to summary
private final int l
pback to summary
private final BigInteger p
qback to summary
private final BigInteger q

Constructor Detail

DHGroupback to summary
public DHGroup(BigInteger p, BigInteger q, BigInteger g, int l)

Base constructor with the prime factor of (p - 1).

Parameters
p:BigInteger

the prime modulus.

q:BigInteger

specifies the prime factor of (p - 1).

g:BigInteger

the base generator.

Method Detail

getGback to summary
public BigInteger getG()
getLback to summary
public int getL()
getPback to summary
public BigInteger getP()
getQback to summary
public BigInteger getQ()