Package | Description |
---|---|
com.nimbusds.jose |
Javascript Object Signing and Encryption (JOSE) classes.
|
com.nimbusds.jose.crypto.factories |
JWS verifier and JWE decrypter factories for use by the JOSE / JWT processor
framework.
|
com.nimbusds.jose.crypto.impl |
Cryptographic primitives and framework for the JWS signers / verifiers and
JWE encrypters / decrypters in the
com.nimbusds.jose.crypto package. |
com.nimbusds.jose.jca |
Java Cryptography Architecture (JCA) context interfaces and classes.
|
com.nimbusds.jose.proc |
Secure framework for application-specific verification and decryption of
JOSE objects (with arbitrary payloads).
|
Modifier and Type | Field and Description |
---|---|
static JWEAlgorithm |
JWEAlgorithm.A128GCMKW
AES in Galois/Counter Mode (GCM) (NIST.800-38D) 128 bit keys.
|
static JWEAlgorithm |
JWEAlgorithm.A128KW
Advanced Encryption Standard (AES) Key Wrap Algorithm (RFC 3394)
using 128 bit keys.
|
static JWEAlgorithm |
JWEAlgorithm.A192GCMKW
AES in Galois/Counter Mode (GCM) (NIST.800-38D) 192 bit keys.
|
static JWEAlgorithm |
JWEAlgorithm.A192KW
Advanced Encryption Standard (AES) Key Wrap Algorithm (RFC 3394)
using 192 bit keys.
|
static JWEAlgorithm |
JWEAlgorithm.A256GCMKW
AES in Galois/Counter Mode (GCM) (NIST.800-38D) 256 bit keys.
|
static JWEAlgorithm |
JWEAlgorithm.A256KW
Advanced Encryption Standard (AES) Key Wrap Algorithm (RFC 3394)
using 256 bit keys.
|
static JWEAlgorithm |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
JWEAlgorithm.RSA_OAEP
Deprecated.
|
static JWEAlgorithm |
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 |
JWEAlgorithm.RSA1_5
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
JWEAlgorithm |
JWEHeader.getAlgorithm()
Gets the algorithm (
alg ) parameter. |
static JWEAlgorithm |
JWEAlgorithm.parse(String s)
Parses a JWE algorithm from the specified string.
|
Modifier and Type | Method and Description |
---|---|
Set<JWEAlgorithm> |
JWEProvider.supportedJWEAlgorithms()
Returns the names of the supported algorithms by the JWE provider
instance.
|
Constructor and Description |
---|
Builder(JWEAlgorithm alg,
EncryptionMethod enc)
Creates a new JWE header builder.
|
Family(JWEAlgorithm... algs)
Creates a new JWE algorithm family.
|
JWEHeader(JWEAlgorithm alg,
EncryptionMethod enc)
Creates a new minimal JSON Web Encryption (JWE) header.
|
Modifier and Type | Field and Description |
---|---|
static Set<JWEAlgorithm> |
DefaultJWEDecrypterFactory.SUPPORTED_ALGORITHMS
The supported JWE algorithms.
|
Modifier and Type | Method and Description |
---|---|
Set<JWEAlgorithm> |
DefaultJWEDecrypterFactory.supportedJWEAlgorithms() |
Modifier and Type | Field and Description |
---|---|
static Map<Integer,Set<JWEAlgorithm>> |
AESCryptoProvider.COMPATIBLE_ALGORITHMS
The JWE algorithms compatible with each key size in bits.
|
static Set<JWEAlgorithm> |
PasswordBasedCryptoProvider.SUPPORTED_ALGORITHMS
The supported JWE algorithms by the password-based crypto provider
class.
|
static Set<JWEAlgorithm> |
AESCryptoProvider.SUPPORTED_ALGORITHMS
The supported JWE algorithms by the AES crypto provider class.
|
static Set<JWEAlgorithm> |
DirectCryptoProvider.SUPPORTED_ALGORITHMS
The supported JWE algorithms by the direct crypto provider class.
|
static Set<JWEAlgorithm> |
RSACryptoProvider.SUPPORTED_ALGORITHMS
The supported JWE algorithms by the RSA crypto provider class.
|
static Set<JWEAlgorithm> |
ECDHCryptoProvider.SUPPORTED_ALGORITHMS
The supported JWE algorithms by the ECDH crypto provider class.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
PBKDF2.formatSalt(JWEAlgorithm alg,
byte[] salt)
Formats the specified cryptographic salt for use in PBKDF2.
|
static PRFParams |
PRFParams.resolve(JWEAlgorithm alg,
Provider macProvider)
Resolves the Pseudo-Random Function (PRF) parameters for the
specified PBES2 JWE algorithm.
|
static ECDH.AlgorithmMode |
ECDH.resolveAlgorithmMode(JWEAlgorithm alg)
Resolves the ECDH algorithm mode.
|
static int |
ECDH.sharedKeyLength(JWEAlgorithm alg,
EncryptionMethod enc)
Returns the bit length of the shared key (derived via concat KDF)
for the specified JWE ECDH algorithm.
|
static String |
AlgorithmSupportMessage.unsupportedJWEAlgorithm(JWEAlgorithm unsupported,
Collection<JWEAlgorithm> supported)
Returns a message that the specified JWE algorithm is not supported.
|
Modifier and Type | Method and Description |
---|---|
static String |
AlgorithmSupportMessage.unsupportedJWEAlgorithm(JWEAlgorithm unsupported,
Collection<JWEAlgorithm> supported)
Returns a message that the specified JWE algorithm is not supported.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
JCASupport.isSupported(JWEAlgorithm alg)
Checks if the specified JWE algorithm is supported by the default
system JCA provider(s).
|
static boolean |
JCASupport.isSupported(JWEAlgorithm alg,
Provider provider)
Checks if a JWE algorithm is supported by the the specified JCA
provider.
|
Modifier and Type | Method and Description |
---|---|
JWEAlgorithm |
JWEDecryptionKeySelector.getExpectedJWEAlgorithm()
Returns the expected JWE algorithm.
|
Constructor and Description |
---|
JWEDecryptionKeySelector(JWEAlgorithm jweAlg,
EncryptionMethod jweEnc,
JWKSource<C> jwkSource)
Creates a new decryption key selector.
|
Copyright © 2020 Connect2id Ltd.. All rights reserved.