KeyCurveName Class

public final class KeyCurveName
extends ExpandableStringEnum<KeyCurveName>

Elliptic curve name.

Field Summary

Modifier and Type Field and Description
static final KeyCurveName P_256

The NIST P-256 elliptic curve, AKA SECG curve SECP256R1.

static final KeyCurveName P_256K

The SECG SECP256K1 elliptic curve.

static final KeyCurveName P_384

The NIST P-384 elliptic curve, AKA SECG curve SECP384R1.

static final KeyCurveName P_521

The NIST P-521 elliptic curve, AKA SECG curve SECP521R1.

Constructor Summary

Constructor Description
KeyCurveName()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of KeyCurveName value.

Method Summary

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

Creates or finds a KeyCurveName from its string representation.

static Collection<KeyCurveName> values()

Gets known KeyCurveName values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

P_256

public static final KeyCurveName P_256

The NIST P-256 elliptic curve, AKA SECG curve SECP256R1.

P_256K

public static final KeyCurveName P_256K

The SECG SECP256K1 elliptic curve.

P_384

public static final KeyCurveName P_384

The NIST P-384 elliptic curve, AKA SECG curve SECP384R1.

P_521

public static final KeyCurveName P_521

The NIST P-521 elliptic curve, AKA SECG curve SECP521R1.

Constructor Details

KeyCurveName

@Deprecated
public KeyCurveName()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of KeyCurveName value.

Method Details

fromString

public static KeyCurveName fromString(String name)

Creates or finds a KeyCurveName from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding KeyCurveName.

values

public static Collection values()

Gets known KeyCurveName values.

Returns:

known KeyCurveName values.

Applies to