Package com.nimbusds.jose.crypto.impl
Class RSACryptoProvider
java.lang.Object
com.nimbusds.jose.crypto.impl.BaseJWEProvider
com.nimbusds.jose.crypto.impl.RSACryptoProvider
- All Implemented Interfaces:
JCAAware<JWEJCAContext>
,JOSEProvider
,JWEProvider
- Direct Known Subclasses:
RSADecrypter
,RSAEncrypter
The base abstract class for RSA encrypters and decrypters of
JWE objects
.
Supports the following key management algorithms:
Supports the following content encryption algorithms:
- Version:
- 2023-03-26
- Author:
- David Ortiz, Vladimir Dzhuvinov, Egor Puzanov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<JWEAlgorithm>
The supported JWE algorithms by the RSA crypto provider class.static final Set<EncryptionMethod>
The supported encryption methods by the RSA crypto provider class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new RSA encryption / decryption provider. -
Method Summary
Methods inherited from class com.nimbusds.jose.crypto.impl.BaseJWEProvider
getCEK, getJCAContext, isCEKProvided, supportedEncryptionMethods, supportedJWEAlgorithms
-
Field Details
-
SUPPORTED_ALGORITHMS
The supported JWE algorithms by the RSA crypto provider class. -
SUPPORTED_ENCRYPTION_METHODS
The supported encryption methods by the RSA crypto provider class.
-
-
Constructor Details
-
RSACryptoProvider
Creates a new RSA encryption / decryption provider.- Parameters:
cek
- The Content Encryption Key (CEK). Must be 128 bits (16 bytes), 192 bits (24 bytes), 256 bits (32 bytes), 384 bits (48 bytes) or 512 bits (64 bytes) long. Must not benull
.
-