Package com.nimbusds.jose
Interface JWEDecrypter
-
- All Superinterfaces:
JCAAware<JWEJCAContext>,JOSEProvider,JWEProvider
- All Known Implementing Classes:
AESDecrypter,DirectDecrypter,ECDH1PUDecrypter,ECDH1PUX25519Decrypter,ECDHDecrypter,PasswordBasedDecrypter,RSADecrypter,X25519Decrypter
public interface JWEDecrypter extends JWEProvider
JSON Web Encryption (JWE) decrypter.- Version:
- 2015-04-21
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag)Decrypts the specified cipher text of aJWE Object.-
Methods inherited from interface com.nimbusds.jose.jca.JCAAware
getJCAContext
-
Methods inherited from interface com.nimbusds.jose.JWEProvider
supportedEncryptionMethods, supportedJWEAlgorithms
-
-
-
-
Method Detail
-
decrypt
byte[] decrypt(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authTag) throws JOSEException
Decrypts the specified cipher text of aJWE Object.- Parameters:
header- The JSON Web Encryption (JWE) header. Must specify a supported JWE algorithm and method. Must not benull.encryptedKey- The encrypted key,nullif not required by the JWE algorithm.iv- The initialisation vector,nullif not required by the JWE algorithm.cipherText- The cipher text to decrypt. Must not benull.authTag- The authentication tag,nullif not required.- Returns:
- The clear text.
- Throws:
JOSEException- If the JWE algorithm or method is not supported, if a critical header parameter is not supported or marked for deferral to the application, or if decryption failed for some other reason.
-
-