@Immutable public final class JWEAlgorithm extends Algorithm
alg
header
parameter in JWE objects. This class is immutable.
Includes constants for the following standard JWE algorithm names:
RSA-OAEP-256
RSA-OAEP
(deprecated)
RSA1_5
(deprecated)
A128KW
A192KW
A256KW
dir
ECDH-ES
ESDH-ES+A128KW
ESDH-ES+A192KW
ESDH-ES+A256KW
PBES2-HS256+A128KW
PBES2-HS256+A192KW
PBES2-HS256+A256KW
Additional JWE algorithm names can be defined using the constructors.
Modifier and Type | Class and Description |
---|---|
static class |
JWEAlgorithm.Family
JWE algorithm family.
|
Modifier and Type | Field and Description |
---|---|
static JWEAlgorithm |
A128GCMKW
AES in Galois/Counter Mode (GCM) (NIST.800-38D) 128 bit keys.
|
static JWEAlgorithm |
A128KW
Advanced Encryption Standard (AES) Key Wrap Algorithm (RFC 3394)
using 128 bit keys.
|
static JWEAlgorithm |
A192GCMKW
AES in Galois/Counter Mode (GCM) (NIST.800-38D) 192 bit keys.
|
static JWEAlgorithm |
A192KW
Advanced Encryption Standard (AES) Key Wrap Algorithm (RFC 3394)
using 192 bit keys.
|
static JWEAlgorithm |
A256GCMKW
AES in Galois/Counter Mode (GCM) (NIST.800-38D) 256 bit keys.
|
static JWEAlgorithm |
A256KW
Advanced Encryption Standard (AES) Key Wrap Algorithm (RFC 3394)
using 256 bit keys.
|
static JWEAlgorithm |
DIR
Direct use of a shared symmetric key as the Content Encryption Key
(CEK) for the block encryption step (rather than using the symmetric
key to wrap the CEK).
|
static JWEAlgorithm |
ECDH_ES
Elliptic Curve Diffie-Hellman Ephemeral Static (RFC 6090) key
agreement using the Concat KDF, as defined in section 5.8.1 of
NIST.800-56A, with the agreed-upon key being used directly as the
Content Encryption Key (CEK) (rather than being used to wrap the
CEK).
|
static JWEAlgorithm |
ECDH_ES_A128KW
Elliptic Curve Diffie-Hellman Ephemeral Static key agreement per
"ECDH-ES", but where the agreed-upon key is used to wrap the Content
Encryption Key (CEK) with the "A128KW" function (rather than being
used directly as the CEK).
|
static JWEAlgorithm |
ECDH_ES_A192KW
Elliptic Curve Diffie-Hellman Ephemeral Static key agreement per
"ECDH-ES", but where the agreed-upon key is used to wrap the Content
Encryption Key (CEK) with the "A192KW" function (rather than being
used directly as the CEK).
|
static JWEAlgorithm |
ECDH_ES_A256KW
Elliptic Curve Diffie-Hellman Ephemeral Static key agreement per
"ECDH-ES", but where the agreed-upon key is used to wrap the Content
Encryption Key (CEK) with the "A256KW" function (rather than being
used directly as the CEK).
|
static JWEAlgorithm |
PBES2_HS256_A128KW
PBES2 (RFC 2898) with HMAC SHA-256 as the PRF and AES Key Wrap
(RFC 3394) using 128 bit keys for the encryption scheme.
|
static JWEAlgorithm |
PBES2_HS384_A192KW
PBES2 (RFC 2898) with HMAC SHA-384 as the PRF and AES Key Wrap
(RFC 3394) using 192 bit keys for the encryption scheme.
|
static JWEAlgorithm |
PBES2_HS512_A256KW
PBES2 (RFC 2898) with HMAC SHA-512 as the PRF and AES Key Wrap
(RFC 3394) using 256 bit keys for the encryption scheme.
|
static JWEAlgorithm |
RSA_OAEP
Deprecated.
|
static JWEAlgorithm |
RSA_OAEP_256
RSAES using Optimal Asymmetric Encryption Padding (OAEP) (RFC 3447),
with the SHA-256 hash function and the MGF1 with SHA-256 mask
generation function.
|
static JWEAlgorithm |
RSA1_5
Deprecated.
|
Constructor and Description |
---|
JWEAlgorithm(String name)
Creates a new JSON Web Encryption (JWE) algorithm.
|
JWEAlgorithm(String name,
Requirement req)
Creates a new JSON Web Encryption (JWE) algorithm.
|
Modifier and Type | Method and Description |
---|---|
static JWEAlgorithm |
parse(String s)
Parses a JWE algorithm from the specified string.
|
equals, getName, getRequirement, hashCode, toJSONString, toString
@Deprecated public static final JWEAlgorithm RSA1_5
RSA_OAEP_256
instead.@Deprecated public static final JWEAlgorithm RSA_OAEP
RSA_OAEP_256
instead.public static final JWEAlgorithm RSA_OAEP_256
public static final JWEAlgorithm A128KW
public static final JWEAlgorithm A192KW
public static final JWEAlgorithm A256KW
public static final JWEAlgorithm DIR
public static final JWEAlgorithm ECDH_ES
public static final JWEAlgorithm ECDH_ES_A128KW
public static final JWEAlgorithm ECDH_ES_A192KW
public static final JWEAlgorithm ECDH_ES_A256KW
public static final JWEAlgorithm A128GCMKW
public static final JWEAlgorithm A192GCMKW
public static final JWEAlgorithm A256GCMKW
public static final JWEAlgorithm PBES2_HS256_A128KW
public static final JWEAlgorithm PBES2_HS384_A192KW
public static final JWEAlgorithm PBES2_HS512_A256KW
public JWEAlgorithm(String name, Requirement req)
name
- The algorithm name. Must not be null
.req
- The implementation requirement, null
if not
known.public JWEAlgorithm(String name)
name
- The algorithm name. Must not be null
.public static JWEAlgorithm parse(String s)
s
- The string to parse. Must not be null
.Copyright © 2017 Connect2id Ltd.. All rights reserved.