public enum JWEAlg extends Enum<JWEAlg>
"alg" (Algorithm) Header Parameter Values for JWE.| Enum Constant and Description |
|---|
A128GCMKW
"A128GCMKW" (12); Key wrapping with AES GCM using 128 bit key. |
A128KW
"A128KW" (4); AES Key Wrap with default initial value using 128 bit key. |
A192GCMKW
"A192GCMKW" (13); Key wrapping with AES GCM using 192 bit key. |
A192KW
"A192KW" (5); AES Key Wrap with default initial value using 192 bit key. |
A256GCMKW
"A256GCMKW" (14); Key wrapping with AES GCM using 256 bit key. |
A256KW
"A256KW" (6); AES Key Wrap with default initial value using 256 bit key. |
DIR
"dir" (7); Direct use of a shared symmetric key as the CEK. |
ECDH_ES
"ECDH-ES" (8); Elliptic Curve Diffie-Hellman Ephemeral Static key agreement
using Concat KDF. |
ECDH_ES_A128KW
"ECDH-ES+A128KW" (9); ECDH-ES using Concat KDF and CEK wrapped with "A128KW". |
ECDH_ES_A192KW
"ECDH-ES+A192KW" (10); ECDH-ES using Concat KDF and CEK wrapped with "A192KW". |
ECDH_ES_A256KW
"ECDH-ES+A256KW" (11); ECDH-ES using Concat KDF and CEK wrapped with "A256KW". |
PBES2_HS256_A128KW
"PBES2-HS256+A128KW" (15); PBES2 with HMAC SHA-256 and "A128KW". |
PBES2_HS384_A192KW
"PBES2-HS384+A192KW" (16); PBES2 with HMAC SHA-34 and "A192KW". |
PBES2_HS512_A256KW
"PBES2-HS512+A256KW" (17); PBES2 with HMAC SHA-512 and "A256KW". |
RSA_OAEP
"RSA-OAEP" (2); RSAES OAEP using default parameters. |
RSA_OAEP_256
"RSA-OAEP-256" (3); RSAES OAEP using SHA-256 and MGF1 with SHA-256. |
RSA1_5
"RSA1_5" (1); RSAES-PKCS1-V1_5. |
| Modifier and Type | Method and Description |
|---|---|
static JWEAlg |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static JWEAlg |
parse(String alg)
Convert
String to JWEAlg. |
static JWEAlg[] |
toArray(int bits) |
static int |
toBits(EnumSet<JWEAlg> set) |
static EnumSet<JWEAlg> |
toSet(int bits) |
static EnumSet<JWEAlg> |
toSet(JWEAlg[] array) |
String |
toString() |
static JWEAlg |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JWEAlg[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JWEAlg RSA1_5
"RSA1_5" (1); RSAES-PKCS1-V1_5.public static final JWEAlg RSA_OAEP
"RSA-OAEP" (2); RSAES OAEP using default parameters.public static final JWEAlg RSA_OAEP_256
"RSA-OAEP-256" (3); RSAES OAEP using SHA-256 and MGF1 with SHA-256.public static final JWEAlg A128KW
"A128KW" (4); AES Key Wrap with default initial value using 128 bit key.public static final JWEAlg A192KW
"A192KW" (5); AES Key Wrap with default initial value using 192 bit key.public static final JWEAlg A256KW
"A256KW" (6); AES Key Wrap with default initial value using 256 bit key.public static final JWEAlg DIR
"dir" (7); Direct use of a shared symmetric key as the CEK.public static final JWEAlg ECDH_ES
"ECDH-ES" (8); Elliptic Curve Diffie-Hellman Ephemeral Static key agreement
using Concat KDF.public static final JWEAlg ECDH_ES_A128KW
"ECDH-ES+A128KW" (9); ECDH-ES using Concat KDF and CEK wrapped with "A128KW".public static final JWEAlg ECDH_ES_A192KW
"ECDH-ES+A192KW" (10); ECDH-ES using Concat KDF and CEK wrapped with "A192KW".public static final JWEAlg ECDH_ES_A256KW
"ECDH-ES+A256KW" (11); ECDH-ES using Concat KDF and CEK wrapped with "A256KW".public static final JWEAlg A128GCMKW
"A128GCMKW" (12); Key wrapping with AES GCM using 128 bit key.public static final JWEAlg A192GCMKW
"A192GCMKW" (13); Key wrapping with AES GCM using 192 bit key.public static final JWEAlg A256GCMKW
"A256GCMKW" (14); Key wrapping with AES GCM using 256 bit key.public static final JWEAlg PBES2_HS256_A128KW
"PBES2-HS256+A128KW" (15); PBES2 with HMAC SHA-256 and "A128KW".public static final JWEAlg PBES2_HS384_A192KW
"PBES2-HS384+A192KW" (16); PBES2 with HMAC SHA-34 and "A192KW".public static final JWEAlg PBES2_HS512_A256KW
"PBES2-HS512+A256KW" (17); PBES2 with HMAC SHA-512 and "A256KW".public static JWEAlg[] values()
for (JWEAlg c : JWEAlg.values()) System.out.println(c);
public static JWEAlg valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic short getValue()
public static JWEAlg getByValue(short value)
value - The integer representation of the instance to find.null if not found.public static JWEAlg parse(String alg)
String to JWEAlg.alg - Algorithm name. For example, "RSA1_5".JWEAlg instance, or null.public static JWEAlg[] toArray(int bits)
Copyright © 2017. All rights reserved.