iaik.security.ssl
Class SupportedGroups.NamedFFDHEGroup

java.lang.Object
  extended by iaik.security.ssl.NamedGroup
      extended by iaik.security.ssl.SupportedGroups.NamedFFDHEGroup
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
SupportedGroups

public static class SupportedGroups.NamedFFDHEGroup
extends NamedGroup
implements java.lang.Cloneable

TLS NamedFFDHEGroup.


Constructor Summary
SupportedGroups.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.
SupportedGroups.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.
 
Method Summary
 java.lang.Object clone()
          Gets a clone of this NamedCurve object.
 javax.crypto.spec.DHParameterSpec getParams()
          Gets the DH parameters of this FFDHE group.
 
Methods inherited from class iaik.security.ssl.NamedGroup
equals, getID, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SupportedGroups.NamedFFDHEGroup

public SupportedGroups.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.

Parameters:
name - the name of the group
p - the prime modulus
g - the base generator
id - the TLS id of the group
Throws:
java.lang.IllegalArgumentException - if the given TLS id is out-of-range (not between 1 and 216-1); or name is null

SupportedGroups.NamedFFDHEGroup

public SupportedGroups.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.

Parameters:
name - the name of the group
p - the prime modulus
g - the base generator
id - the TLS id of the group
register - whether to register the NamedGroup in the supported groups repository
Throws:
java.lang.IllegalArgumentException - if the given TLS id is out-of-range (not between 1 and 216-1); or name is null
Method Detail

getParams

public javax.crypto.spec.DHParameterSpec getParams()
Gets the DH parameters of this FFDHE group.

Returns:
the DH parameters of this FFDHE group (or null if the parameters are not known)

clone

public java.lang.Object clone()
Gets a clone of this NamedCurve object.

Overrides:
clone in class NamedGroup
Returns:
a clone of this NamedCurve object

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

iSaSiLk 6.0, (c) 2002 IAIK, (c) 2003 - 2015 SIC