public static class SupportedGroups.NamedFFDHEGroup extends NamedGroup implements java.lang.Cloneable
Constructor and Description |
---|
NamedFFDHEGroup(java.lang.String name,
java.math.BigInteger p,
java.math.BigInteger g,
int id)
Creates a FFDHE group with the given name, prime modulus and base generator, and id.
|
NamedFFDHEGroup(java.lang.String name,
java.math.BigInteger p,
java.math.BigInteger g,
int id,
boolean register)
Creates a FFDHE group with the given name, prime modulus and base generator, and id.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Gets a clone of this NamedCurve object.
|
javax.crypto.spec.DHParameterSpec |
getParams()
Gets the DH parameters of this FFDHE group.
|
public NamedFFDHEGroup(java.lang.String name, java.math.BigInteger p, java.math.BigInteger g, int id)
name
- the name of the groupp
- the prime modulusg
- the base generatorid
- the TLS id of the groupjava.lang.IllegalArgumentException
- if the given TLS id is out-of-range (not between 1 and
216-1); or name
is null
public NamedFFDHEGroup(java.lang.String name, java.math.BigInteger p, java.math.BigInteger g, int id, boolean register)
name
- the name of the groupp
- the prime modulusg
- the base generatorid
- the TLS id of the groupregister
- whether to register the NamedGroup in the supported groups
repositoryjava.lang.IllegalArgumentException
- if the given TLS id is out-of-range (not between 1 and
216-1); or name
is null
public javax.crypto.spec.DHParameterSpec getParams()
null
if
the parameters are not known)public java.lang.Object clone()
clone
in class NamedGroup