Class DirectEncrypter
- java.lang.Object
-
- org.jboss.resteasy.jose.jwe.crypto.DirectEncrypter
-
public class DirectEncrypter extends Object
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
Constructors Constructor Description DirectEncrypter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
encrypt(EncryptionMethod enc, CompressionAlgorithm compressionAlgorithm, String encodedJWEHeader, SecretKey key, byte[] bytes)
-
-
-
Method Detail
-
encrypt
public static String encrypt(EncryptionMethod enc, CompressionAlgorithm compressionAlgorithm, String encodedJWEHeader, SecretKey key, byte[] bytes)
-
-