JsonWebKeyType Class

public final class JsonWebKeyType
extends ExpandableStringEnum<JsonWebKeyType>

The type of the key. For valid values, see JsonWebKeyType.

Field Summary

Modifier and Type Field and Description
static final JsonWebKeyType EC

Static value EC for JsonWebKeyType.

static final JsonWebKeyType EC_HSM

Static value EC-HSM for JsonWebKeyType.

static final JsonWebKeyType RSA

Static value RSA for JsonWebKeyType.

static final JsonWebKeyType RSA_HSM

Static value RSA-HSM for JsonWebKeyType.

Constructor Summary

Constructor Description
JsonWebKeyType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of JsonWebKeyType value.

Method Summary

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

Creates or finds a JsonWebKeyType from its string representation.

static Collection<JsonWebKeyType> values()

Gets known JsonWebKeyType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

EC

public static final JsonWebKeyType EC

Static value EC for JsonWebKeyType.

EC_HSM

public static final JsonWebKeyType EC_HSM

Static value EC-HSM for JsonWebKeyType.

RSA

public static final JsonWebKeyType RSA

Static value RSA for JsonWebKeyType.

RSA_HSM

public static final JsonWebKeyType RSA_HSM

Static value RSA-HSM for JsonWebKeyType.

Constructor Details

JsonWebKeyType

@Deprecated
public JsonWebKeyType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of JsonWebKeyType value.

Method Details

fromString

public static JsonWebKeyType fromString(String name)

Creates or finds a JsonWebKeyType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding JsonWebKeyType.

values

public static Collection values()

Gets known JsonWebKeyType values.

Returns:

known JsonWebKeyType values.

Applies to