public class JWEDecrypter extends Object
Supports the following JWE algorithms:
org.picketlink.json.JsonConstants.JWE.RSA1_5
org.picketlink.json.JsonConstants.JWE.RSA_OAEP
org.picketlink.json.JsonConstants.JWE.RSA_OAEP_256
Supports the following encryption algorithms:
org.picketlink.json.JsonConstants.JWE.A128CBC_HS256
org.picketlink.json.JsonConstants.JWE.A192CBC_HS384
org.picketlink.json.JsonConstants.JWE.A256CBC_HS512
org.picketlink.json.JsonConstants.JWE.A128GCM
org.picketlink.json.JsonConstants.JWE.A192GCM
org.picketlink.json.JsonConstants.JWE.A256GCM
Constructor and Description |
---|
JWEDecrypter(RSAPrivateKey privateKey)
Creates a new RSA decrypter.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(JWE jweHeader,
String encryptedKey,
String iv,
String cipherText,
String authTag) |
RSAPrivateKey |
getPrivateKey()
Gets the private RSA key.
|
public JWEDecrypter(RSAPrivateKey privateKey)
privateKey
- The private RSA key. Must not be null
.Copyright © 2016. All rights reserved.