@ThreadSafe public class DefaultJWEDecrypterFactory extends Object implements JWEDecrypterFactory
Supports all standard JWE algorithms implemented in the
com.nimbusds.jose.crypto
package.
Constructor and Description |
---|
DefaultJWEDecrypterFactory() |
Modifier and Type | Method and Description |
---|---|
JWEDecrypter |
createJWEDecrypter(JWEHeader header,
Key key)
Creates a new JWE decrypter for the specified header and key.
|
public DefaultJWEDecrypterFactory()
public JWEDecrypter createJWEDecrypter(JWEHeader header, Key key) throws JOSEException
JWEDecrypterFactory
createJWEDecrypter
in interface JWEDecrypterFactory
header
- The JWE header. Not null
.key
- The key intended to verify the JWS message. Not
null
.JOSEException
- If the JWE algorithm / encryption method is
not supported or the key type or length
doesn't match expected for the JWE algorithm.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.