Package com.nimbusds.jose.proc
Interface JWEDecrypterFactory
- All Superinterfaces:
JCAAware<JWEJCAContext>,JOSEProvider,JWEProvider
- All Known Implementing Classes:
DefaultJWEDecrypterFactory
JSON Web Encryption (JWE) decrypter factory.
- Version:
- 2015-11-16
- Author:
- Vladimir Dzhuvinov
-
Method Summary
Modifier and TypeMethodDescriptioncreateJWEDecrypter(JWEHeader header, Key key) Creates a new JWE decrypter for the specified header and key.Methods inherited from interface com.nimbusds.jose.jca.JCAAware
getJCAContextMethods inherited from interface com.nimbusds.jose.JWEProvider
supportedEncryptionMethods, supportedJWEAlgorithms
-
Method Details
-
createJWEDecrypter
Creates a new JWE decrypter for the specified header and key.- Parameters:
header- The JWE header. Notnull.key- The key intended to verify the JWS message. Notnull.- Returns:
- The JWE decrypter.
- Throws:
JOSEException- If the JWE algorithm / encryption method is not supported or the key type or length doesn't match expected for the JWE algorithm.
-