public interface JWEEncrypter extends JWEAlgorithmProvider
Callers can query the encrypter to determine its algorithm capabilities.
Modifier and Type | Method and Description |
---|---|
JWECryptoParts |
encrypt(JWEHeader header,
byte[] clearText)
Encrypts the specified clear text of a
JWE object . |
setContentEncryptionProvider, setKeyEncryptionProvider, setMACProvider, setSecureRandom, supportedAlgorithms, supportedEncryptionMethods
setProvider
JWECryptoParts encrypt(JWEHeader header, byte[] clearText) throws JOSEException
JWE object
.header
- The JSON Web Encryption (JWE) header. Must specify a
supported JWE algorithm and must not be
null
.clearText
- The clear text to encrypt. Must not be null
.JOSEException
- If the JWE algorithm is not supported or if
encryption failed for some other reason.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.