EncryptionAlgorithm Class

public final class EncryptionAlgorithm
extends ExpandableStringEnum<EncryptionAlgorithm>

Defines values for EncryptionAlgorithm.

Field Summary

Modifier and Type Field and Description
static final EncryptionAlgorithm A128CBC

Static value A128CBC for EncryptionAlgorithm.

static final EncryptionAlgorithm A128CBCPAD

Static value A128CBCPAD for EncryptionAlgorithm.

static final EncryptionAlgorithm A128CBC_HS256

Static value A128CBC_HS256 for EncryptionAlgorithm.

static final EncryptionAlgorithm A128GCM

Static value A128GCM for EncryptionAlgorithm.

static final EncryptionAlgorithm A128KW

Static value A128KW for EncryptionAlgorithm.

static final EncryptionAlgorithm A192CBC

Static value A192CBC for EncryptionAlgorithm.

static final EncryptionAlgorithm A192CBCPAD

Static value A192CBCPAD for EncryptionAlgorithm.

static final EncryptionAlgorithm A192CBC_HS384

Static value A192CBC_HS384 for EncryptionAlgorithm.

static final EncryptionAlgorithm A192GCM

Static value A192GCM for EncryptionAlgorithm.

static final EncryptionAlgorithm A192KW

Static value A192KW for EncryptionAlgorithm.

static final EncryptionAlgorithm A256CBC

Static value A256CBC for EncryptionAlgorithm.

static final EncryptionAlgorithm A256CBCPAD

Static value A256CBCPAD for EncryptionAlgorithm.

static final EncryptionAlgorithm A256CBC_HS512

Static value A256CBC_HS512 for EncryptionAlgorithm.

static final EncryptionAlgorithm A256GCM

Static value A256GCM for EncryptionAlgorithm.

static final EncryptionAlgorithm A256KW

Static value A256KW for EncryptionAlgorithm.

static final EncryptionAlgorithm RSA1_5

Static value RSA1_5 for EncryptionAlgorithm.

static final EncryptionAlgorithm RSA_OAEP

Static value RSA_OAEP for EncryptionAlgorithm.

static final EncryptionAlgorithm RSA_OAEP_256

Static value RSA_OAEP_256 for EncryptionAlgorithm.

Constructor Summary

Constructor Description
EncryptionAlgorithm()

Deprecated

Use the fromString(String name) factory method.

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

Method Summary

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

Creates or finds a EncryptionAlgorithm from its string representation.

static Collection<EncryptionAlgorithm> values()

Gets known EncryptionAlgorithm values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

A128CBC

public static final EncryptionAlgorithm A128CBC

Static value A128CBC for EncryptionAlgorithm.

A128CBCPAD

public static final EncryptionAlgorithm A128CBCPAD

Static value A128CBCPAD for EncryptionAlgorithm.

A128CBC_HS256

public static final EncryptionAlgorithm A128CBC_HS256

Static value A128CBC_HS256 for EncryptionAlgorithm.

A128GCM

public static final EncryptionAlgorithm A128GCM

Static value A128GCM for EncryptionAlgorithm.

A128KW

public static final EncryptionAlgorithm A128KW

Static value A128KW for EncryptionAlgorithm.

A192CBC

public static final EncryptionAlgorithm A192CBC

Static value A192CBC for EncryptionAlgorithm.

A192CBCPAD

public static final EncryptionAlgorithm A192CBCPAD

Static value A192CBCPAD for EncryptionAlgorithm.

A192CBC_HS384

public static final EncryptionAlgorithm A192CBC_HS384

Static value A192CBC_HS384 for EncryptionAlgorithm.

A192GCM

public static final EncryptionAlgorithm A192GCM

Static value A192GCM for EncryptionAlgorithm.

A192KW

public static final EncryptionAlgorithm A192KW

Static value A192KW for EncryptionAlgorithm.

A256CBC

public static final EncryptionAlgorithm A256CBC

Static value A256CBC for EncryptionAlgorithm.

A256CBCPAD

public static final EncryptionAlgorithm A256CBCPAD

Static value A256CBCPAD for EncryptionAlgorithm.

A256CBC_HS512

public static final EncryptionAlgorithm A256CBC_HS512

Static value A256CBC_HS512 for EncryptionAlgorithm.

A256GCM

public static final EncryptionAlgorithm A256GCM

Static value A256GCM for EncryptionAlgorithm.

A256KW

public static final EncryptionAlgorithm A256KW

Static value A256KW for EncryptionAlgorithm.

RSA1_5

public static final EncryptionAlgorithm RSA1_5

Static value RSA1_5 for EncryptionAlgorithm.

RSA_OAEP

public static final EncryptionAlgorithm RSA_OAEP

Static value RSA_OAEP for EncryptionAlgorithm.

RSA_OAEP_256

public static final EncryptionAlgorithm RSA_OAEP_256

Static value RSA_OAEP_256 for EncryptionAlgorithm.

Constructor Details

EncryptionAlgorithm

@Deprecated
public EncryptionAlgorithm()

Deprecated

Use the fromString(String name) factory method.

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

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

Method Details

fromString

public static EncryptionAlgorithm fromString(String name)

Creates or finds a EncryptionAlgorithm from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding EncryptionAlgorithm.

values

public static Collection values()

Gets known EncryptionAlgorithm values.

Returns:

known EncryptionAlgorithm values.

Applies to