Package com.nimbusds.jose.proc
Interface JWEDecrypterFactory
-
- All Superinterfaces:
JCAAware<JWEJCAContext>
,JOSEProvider
,JWEProvider
- All Known Implementing Classes:
DefaultJWEDecrypterFactory
public interface JWEDecrypterFactory extends JWEProvider
JSON Web Encryption (JWE) decrypter factory.- Version:
- 2015-11-16
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JWEDecrypter
createJWEDecrypter(JWEHeader header, Key key)
Creates a new JWE decrypter for the specified header and key.-
Methods inherited from interface com.nimbusds.jose.jca.JCAAware
getJCAContext
-
Methods inherited from interface com.nimbusds.jose.JWEProvider
supportedEncryptionMethods, supportedJWEAlgorithms
-
-
-
-
Method Detail
-
createJWEDecrypter
JWEDecrypter createJWEDecrypter(JWEHeader header, Key key) throws JOSEException
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.
-
-