com.nimbusds.jose
@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:
Additional JWE algorithm names can be defined using the constructors.
Modifier and Type | Field and Description |
---|---|
static JWEAlgorithm |
A128KW
Advanced Encryption Standard (AES) Key Wrap Algorithm (RFC 3394)
using 256 bit keys (recommended).
|
static JWEAlgorithm |
A256KW
Advanced Encryption Standard (AES) Key Wrap Algorithm (RFC 3394)
using 256 bit keys (recommended).
|
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) (recommended).
|
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) (recommended).
|
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) (recommended).
|
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) (recommended).
|
static JWEAlgorithm |
RSA_OAEP
RSAES using Optimal Assymetric Encryption Padding (OAEP) (RFC 3447),
with the default parameters specified by RFC 3447 in section A.2.1
(recommended).
|
static JWEAlgorithm |
RSA1_5
RSAES-PKCS1-V1_5 (RFC 3447) (required).
|
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
public static final JWEAlgorithm RSA1_5
public static final JWEAlgorithm RSA_OAEP
public static final JWEAlgorithm A128KW
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_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 © 2013 NimbusDS. All Rights Reserved.