JsonWebKeyCurveName Class

public final class JsonWebKeyCurveName
extends ExpandableStringEnum<JsonWebKeyCurveName>

The elliptic curve name. For valid values, see JsonWebKeyCurveName.

Field Summary

Modifier and Type Field and Description
static final JsonWebKeyCurveName P_256

Static value P-256 for JsonWebKeyCurveName.

static final JsonWebKeyCurveName P_256K

Static value P-256K for JsonWebKeyCurveName.

static final JsonWebKeyCurveName P_384

Static value P-384 for JsonWebKeyCurveName.

static final JsonWebKeyCurveName P_521

Static value P-521 for JsonWebKeyCurveName.

Constructor Summary

Constructor Description
JsonWebKeyCurveName()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of JsonWebKeyCurveName value.

Method Summary

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

Creates or finds a JsonWebKeyCurveName from its string representation.

static Collection<JsonWebKeyCurveName> values()

Gets known JsonWebKeyCurveName values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

P_256

public static final JsonWebKeyCurveName P_256

Static value P-256 for JsonWebKeyCurveName.

P_256K

public static final JsonWebKeyCurveName P_256K

Static value P-256K for JsonWebKeyCurveName.

P_384

public static final JsonWebKeyCurveName P_384

Static value P-384 for JsonWebKeyCurveName.

P_521

public static final JsonWebKeyCurveName P_521

Static value P-521 for JsonWebKeyCurveName.

Constructor Details

JsonWebKeyCurveName

@Deprecated
public JsonWebKeyCurveName()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of JsonWebKeyCurveName value.

Method Details

fromString

public static JsonWebKeyCurveName fromString(String name)

Creates or finds a JsonWebKeyCurveName from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding JsonWebKeyCurveName.

values

public static Collection values()

Gets known JsonWebKeyCurveName values.

Returns:

known JsonWebKeyCurveName values.

Applies to