Class DirectEncrypter
java.lang.Object
org.jboss.resteasy.jose.jwe.crypto.DirectEncrypter
Direct encrypter with a
shared symmetric key. This class is thread-safe.
Supports the following JWE algorithms:
- DIR
Supports the following encryption methods:
- A128CBC_HS256}
- A256CBC_HS512}
- A128GCM}
- A256GCM}
- Version:
- $version$ (2013-05-29)
- Author:
- Vladimir Dzhuvinov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
encrypt
(EncryptionMethod enc, CompressionAlgorithm compressionAlgorithm, String encodedJWEHeader, SecretKey key, byte[] bytes)
-
Constructor Details
-
DirectEncrypter
public DirectEncrypter()
-
-
Method Details
-
encrypt
public static String encrypt(EncryptionMethod enc, CompressionAlgorithm compressionAlgorithm, String encodedJWEHeader, SecretKey key, byte[] bytes)
-