Class RSAEncrypter
java.lang.Object
org.jboss.resteasy.jose.jwe.crypto.RSAEncrypter
RSA encrypter
Supports the following JWE algorithms:
- RSA1_5
- RSA_OAEP
Supports the following encryption methods:
- A128CBC_HS256
- A256CBC_HS512
- A128GCM
- A256GCM
- Version:
- $version$ (2013-05-29)
- Author:
- David Ortiz, Vladimir Dzhuvinov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
encrypt
(Algorithm alg, EncryptionMethod enc, CompressionAlgorithm compressionAlgorithm, RSAPublicKey publicKey, String encodedJWEHeader, byte[] bytes)
-
Constructor Details
-
RSAEncrypter
public RSAEncrypter()
-
-
Method Details
-
encrypt
public static String encrypt(Algorithm alg, EncryptionMethod enc, CompressionAlgorithm compressionAlgorithm, RSAPublicKey publicKey, String encodedJWEHeader, byte[] bytes)
-