KeyWrapAlgorithm Class

public final class KeyWrapAlgorithm
extends ExpandableStringEnum<KeyWrapAlgorithm>

Defines values for KeyWrapAlgorithm.

Field Summary

Modifier and Type Field and Description
static final KeyWrapAlgorithm A128KW

Static value A128KW for KeyWrapAlgorithm.

static final KeyWrapAlgorithm A192KW

Static value A192KW for KeyWrapAlgorithm.

static final KeyWrapAlgorithm A256KW

Static value Unwrap Key for KeyWrapAlgorithm.

static final KeyWrapAlgorithm RSA1_5

Static value RSA1_5 for KeyWrapAlgorithm.

static final KeyWrapAlgorithm RSA_OAEP

Static value RSA-OAEP for KeyWrapAlgorithm.

static final KeyWrapAlgorithm RSA_OAEP_256

Static value RSA-OAEP-256 for KeyWrapAlgorithm.

Constructor Summary

Constructor Description
KeyWrapAlgorithm()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of KeyWrapAlgorithm without a #toString() value.

Method Summary

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

Creates or finds a KeyWrapAlgorithm from its string representation.

static Collection<KeyWrapAlgorithm> values()

Gets known KeyWrapAlgorithm values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

A128KW

public static final KeyWrapAlgorithm A128KW

Static value A128KW for KeyWrapAlgorithm.

A192KW

public static final KeyWrapAlgorithm A192KW

Static value A192KW for KeyWrapAlgorithm.

A256KW

public static final KeyWrapAlgorithm A256KW

Static value Unwrap Key for KeyWrapAlgorithm.

RSA1_5

public static final KeyWrapAlgorithm RSA1_5

Static value RSA1_5 for KeyWrapAlgorithm.

RSA_OAEP

public static final KeyWrapAlgorithm RSA_OAEP

Static value RSA-OAEP for KeyWrapAlgorithm.

RSA_OAEP_256

public static final KeyWrapAlgorithm RSA_OAEP_256

Static value RSA-OAEP-256 for KeyWrapAlgorithm.

Constructor Details

KeyWrapAlgorithm

@Deprecated
public KeyWrapAlgorithm()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of KeyWrapAlgorithm without a #toString() value.

This constructor shouldn't be called as it will produce a KeyWrapAlgorithm which doesn't have a String enum value.

Method Details

fromString

public static KeyWrapAlgorithm fromString(String name)

Creates or finds a KeyWrapAlgorithm from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding KeyWrapAlgorithm.

values

public static Collection values()

Gets known KeyWrapAlgorithm values.

Returns:

known KeyWrapAlgorithm values.

Applies to