KeyOperation Class

public final class KeyOperation
extends ExpandableStringEnum<KeyOperation>

JSON web key operations. For more information, see JsonWebKeyOperation.

Field Summary

Modifier and Type Field and Description
static final KeyOperation DECRYPT

Static value decrypt for KeyOperation.

static final KeyOperation ENCRYPT

Static value encrypt for KeyOperation.

static final KeyOperation IMPORT

Static value import for KeyOperation.

static final KeyOperation SIGN

Static value sign for KeyOperation.

static final KeyOperation UNWRAP_KEY

Static value unwrapKey for KeyOperation.

static final KeyOperation VERIFY

Static value verify for KeyOperation.

static final KeyOperation WRAP_KEY

Static value wrapKey for KeyOperation.

Constructor Summary

Constructor Description
KeyOperation()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of KeyOperation value.

Method Summary

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

Creates or finds a KeyOperation from its string representation.

static Collection<KeyOperation> values()

Gets known KeyOperation values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DECRYPT

public static final KeyOperation DECRYPT

Static value decrypt for KeyOperation.

ENCRYPT

public static final KeyOperation ENCRYPT

Static value encrypt for KeyOperation.

IMPORT

public static final KeyOperation IMPORT

Static value import for KeyOperation.

SIGN

public static final KeyOperation SIGN

Static value sign for KeyOperation.

UNWRAP_KEY

public static final KeyOperation UNWRAP_KEY

Static value unwrapKey for KeyOperation.

VERIFY

public static final KeyOperation VERIFY

Static value verify for KeyOperation.

WRAP_KEY

public static final KeyOperation WRAP_KEY

Static value wrapKey for KeyOperation.

Constructor Details

KeyOperation

@Deprecated
public KeyOperation()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of KeyOperation value.

Method Details

fromString

public static KeyOperation fromString(String name)

Creates or finds a KeyOperation from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding KeyOperation.

values

public static Collection values()

Gets known KeyOperation values.

Returns:

known KeyOperation values.

Applies to