DhGroup Class

public final class DhGroup
extends ExpandableStringEnum<DhGroup>

The DH Groups used in IKE Phase 1 for initial SA.

Field Summary

Modifier and Type Field and Description
static final DhGroup DHGROUP1

Static value DHGroup1 for DhGroup.

static final DhGroup DHGROUP14

Static value DHGroup14 for DhGroup.

static final DhGroup DHGROUP2

Static value DHGroup2 for DhGroup.

static final DhGroup DHGROUP2048

Static value DHGroup2048 for DhGroup.

static final DhGroup DHGROUP24

Static value DHGroup24 for DhGroup.

static final DhGroup ECP256

Static value ECP256 for DhGroup.

static final DhGroup ECP384

Static value ECP384 for DhGroup.

static final DhGroup NONE

Static value None for DhGroup.

Constructor Summary

Constructor Description
DhGroup()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DhGroup value.

Method Summary

Modifier and Type Method and Description
static DhGroup fromString(String name)

Creates or finds a DhGroup from its string representation.

static Collection<DhGroup> values()

Gets known DhGroup values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DHGROUP1

public static final DhGroup DHGROUP1

Static value DHGroup1 for DhGroup.

DHGROUP14

public static final DhGroup DHGROUP14

Static value DHGroup14 for DhGroup.

DHGROUP2

public static final DhGroup DHGROUP2

Static value DHGroup2 for DhGroup.

DHGROUP2048

public static final DhGroup DHGROUP2048

Static value DHGroup2048 for DhGroup.

DHGROUP24

public static final DhGroup DHGROUP24

Static value DHGroup24 for DhGroup.

ECP256

public static final DhGroup ECP256

Static value ECP256 for DhGroup.

ECP384

public static final DhGroup ECP384

Static value ECP384 for DhGroup.

NONE

public static final DhGroup NONE

Static value None for DhGroup.

Constructor Details

DhGroup

@Deprecated
public DhGroup()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DhGroup value.

Method Details

fromString

public static DhGroup fromString(String name)

Creates or finds a DhGroup from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DhGroup.

values

public static Collection values()

Gets known DhGroup values.

Returns:

known DhGroup values.

Applies to