Uses of Class
com.nimbusds.jose.EncryptionMethod
Packages that use EncryptionMethod
Package
Description
Base Javascript Object Signing and Encryption (JOSE) interfaces and classes.
JWS signer, JWS verifier, JWE encrypter and JWE decrypter factory
implementations.
Cryptographic primitives for JWS signers, JWS verifiers, JWE encrypters and
JWE decrypters in the
com.nimbusds.jose.crypto
package.Java Cryptography Architecture (JCA) context interfaces and classes.
Framework for application-specific verification and decryption of JOSE
objects (with arbitrary payloads).
-
Uses of EncryptionMethod in com.nimbusds.jose
Fields in com.nimbusds.jose declared as EncryptionMethodModifier and TypeFieldDescriptionstatic final EncryptionMethod
EncryptionMethod.A128CBC_HS256
AES_128_CBC_HMAC_SHA_256 authenticated encryption using a 256 bit key (required).static final EncryptionMethod
EncryptionMethod.A128CBC_HS256_DEPRECATED
AES_128_CBC_HMAC_SHA_256 authenticated encryption using a 256 bit key, deprecated in JOSE draft suite version 09.static final EncryptionMethod
EncryptionMethod.A128GCM
AES in Galois/Counter Mode (GCM) (NIST.800-38D) using a 128 bit key (recommended).static final EncryptionMethod
EncryptionMethod.A192CBC_HS384
AES_192_CBC_HMAC_SHA_384 authenticated encryption using a 384 bit key (optional).static final EncryptionMethod
EncryptionMethod.A192GCM
AES in Galois/Counter Mode (GCM) (NIST.800-38D) using a 192 bit key (optional).static final EncryptionMethod
EncryptionMethod.A256CBC_HS512
AES_256_CBC_HMAC_SHA_512 authenticated encryption using a 512 bit key (required).static final EncryptionMethod
EncryptionMethod.A256CBC_HS512_DEPRECATED
AES_256_CBC_HMAC_SHA_512 authenticated encryption using a 512 bit key, deprecated in JOSE draft suite version 09.static final EncryptionMethod
EncryptionMethod.A256GCM
AES in Galois/Counter Mode (GCM) (NIST.800-38D) using a 256 bit key (recommended).static final EncryptionMethod
EncryptionMethod.XC20P
XChaCha: eXtended-nonce ChaCha and AEAD_XChaCha20_Poly1305 (optional)Methods in com.nimbusds.jose that return EncryptionMethodModifier and TypeMethodDescriptionJWEHeader.getEncryptionMethod()
Gets the encryption method (enc
) parameter.static EncryptionMethod
Parses an encryption method from the specified string.Methods in com.nimbusds.jose that return types with arguments of type EncryptionMethodModifier and TypeMethodDescriptionJWEProvider.supportedEncryptionMethods()
Returns the names of the supported encryption methods by the JWE provier.Constructors in com.nimbusds.jose with parameters of type EncryptionMethodModifierConstructorDescriptionBuilder
(EncryptionMethod enc) Creates a new JWE header builder.Builder
(JWEAlgorithm alg, EncryptionMethod enc) Creates a new JWE header builder.Family
(EncryptionMethod... encs) Creates a new encryption method family.JWEHeader
(Algorithm alg, EncryptionMethod enc, JOSEObjectType typ, String cty, Set<String> crit, URI jku, JWK jwk, URI x5u, Base64URL x5t, Base64URL x5t256, List<Base64> x5c, String kid, JWK epk, CompressionAlgorithm zip, Base64URL apu, Base64URL apv, Base64URL p2s, int p2c, Base64URL iv, Base64URL tag, String skid, String iss, String sub, List<String> aud, Map<String, Object> customParams, Base64URL parsedBase64URL) Creates a new JSON Web Encryption (JWE) header.JWEHeader
(Algorithm alg, EncryptionMethod enc, JOSEObjectType typ, String cty, Set<String> crit, URI jku, JWK jwk, URI x5u, Base64URL x5t, Base64URL x5t256, List<Base64> x5c, String kid, JWK epk, CompressionAlgorithm zip, Base64URL apu, Base64URL apv, Base64URL p2s, int p2c, Base64URL iv, Base64URL tag, String skid, Map<String, Object> customParams, Base64URL parsedBase64URL) Deprecated.Creates a new minimal JSON Web Encryption (JWE) header.JWEHeader
(JWEAlgorithm alg, EncryptionMethod enc) Creates a new minimal JSON Web Encryption (JWE) header. -
Uses of EncryptionMethod in com.nimbusds.jose.crypto.factories
Fields in com.nimbusds.jose.crypto.factories with type parameters of type EncryptionMethodModifier and TypeFieldDescriptionstatic final Set<EncryptionMethod>
DefaultJWEDecrypterFactory.SUPPORTED_ENCRYPTION_METHODS
The supported encryption methods.Methods in com.nimbusds.jose.crypto.factories that return types with arguments of type EncryptionMethod -
Uses of EncryptionMethod in com.nimbusds.jose.crypto.impl
Fields in com.nimbusds.jose.crypto.impl with type parameters of type EncryptionMethodModifier and TypeFieldDescriptionstatic final Map<Integer,
Set<EncryptionMethod>> ContentCryptoProvider.COMPATIBLE_ENCRYPTION_METHODS
The encryption methods compatible with each key size in bits.static final Set<EncryptionMethod>
AESCryptoProvider.SUPPORTED_ENCRYPTION_METHODS
The supported encryption methods by the AES crypto provider class.static final Set<EncryptionMethod>
ContentCryptoProvider.SUPPORTED_ENCRYPTION_METHODS
The supported encryption methods.static final Set<EncryptionMethod>
DirectCryptoProvider.SUPPORTED_ENCRYPTION_METHODS
The supported encryption methods by the direct crypto provider class.static final Set<EncryptionMethod>
ECDH1PUCryptoProvider.SUPPORTED_ENCRYPTION_METHODS
The supported encryption methods by the ECDH crypto provider class.static final Set<EncryptionMethod>
ECDHCryptoProvider.SUPPORTED_ENCRYPTION_METHODS
The supported encryption methods by the ECDH crypto provider class.static final Set<EncryptionMethod>
MultiCryptoProvider.SUPPORTED_ENCRYPTION_METHODS
The supported encryption methods by the direct crypto provider class.static final Set<EncryptionMethod>
PasswordBasedCryptoProvider.SUPPORTED_ENCRYPTION_METHODS
The supported encryption methods by the password-base crypto provider class.static final Set<EncryptionMethod>
RSACryptoProvider.SUPPORTED_ENCRYPTION_METHODS
The supported encryption methods by the RSA crypto provider class.Methods in com.nimbusds.jose.crypto.impl that return types with arguments of type EncryptionMethodMethods in com.nimbusds.jose.crypto.impl with parameters of type EncryptionMethodModifier and TypeMethodDescriptionstatic SecretKey
ContentCryptoProvider.generateCEK
(EncryptionMethod enc, SecureRandom randomGen) Generates a Content Encryption Key (CEK) for the specified JOSE encryption method.static SecretKey
LegacyConcatKDF.generateCEK
(SecretKey key, EncryptionMethod enc, byte[] epu, byte[] epv) Generates a Content Encryption Key (CEK) from the specified Content Master Key (CMK) and JOSE encryption method.static SecretKey
LegacyConcatKDF.generateCIK
(SecretKey key, EncryptionMethod enc, byte[] epu, byte[] epv) Generates a Content Integrity Key (CIK) from the specified Content Master Key (CMK) and JOSE encryption method.protected SecretKey
BaseJWEProvider.getCEK
(EncryptionMethod enc) Returns the content encryption key (CEK) to use.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 int
ECDH1PU.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.unsupportedEncryptionMethod
(EncryptionMethod unsupported, Collection<EncryptionMethod> supported) Returns a message that the specified JWE encryption method is not supported.Method parameters in com.nimbusds.jose.crypto.impl with type arguments of type EncryptionMethodModifier and TypeMethodDescriptionstatic String
AlgorithmSupportMessage.unsupportedEncryptionMethod
(EncryptionMethod unsupported, Collection<EncryptionMethod> supported) Returns a message that the specified JWE encryption method is not supported. -
Uses of EncryptionMethod in com.nimbusds.jose.jca
Methods in com.nimbusds.jose.jca with parameters of type EncryptionMethodModifier and TypeMethodDescriptionstatic boolean
JCASupport.isSupported
(EncryptionMethod enc) Checks if the specified JWE encryption method is supported by the default system JCA provider(s).static boolean
JCASupport.isSupported
(EncryptionMethod enc, Provider provider) Checks if a JWE encryption method is supported by the specified JCA provider. -
Uses of EncryptionMethod in com.nimbusds.jose.proc
Methods in com.nimbusds.jose.proc that return EncryptionMethodModifier and TypeMethodDescriptionJWEDecryptionKeySelector.getExpectedJWEEncryptionMethod()
The expected JWE encryption method.Methods in com.nimbusds.jose.proc that return types with arguments of type EncryptionMethodModifier and TypeMethodDescriptionJOSEMatcher.getEncryptionMethods()
Returns the JOSE encryption methods to match.Methods in com.nimbusds.jose.proc with parameters of type EncryptionMethodModifier and TypeMethodDescriptionJOSEMatcher.Builder.encryptionMethod
(EncryptionMethod enc) Sets a single JOSE encryption method to match.JOSEMatcher.Builder.encryptionMethods
(EncryptionMethod... encs) Sets multiple JOSE encryption methods to match.Method parameters in com.nimbusds.jose.proc with type arguments of type EncryptionMethodModifier and TypeMethodDescriptionJOSEMatcher.Builder.encryptionMethods
(Set<EncryptionMethod> encs) Sets multiple JOSE encryption methods to match.Constructors in com.nimbusds.jose.proc with parameters of type EncryptionMethodModifierConstructorDescriptionJWEDecryptionKeySelector
(JWEAlgorithm jweAlg, EncryptionMethod jweEnc, JWKSource<C> jwkSource) Creates a new decryption key selector.