public interface JWEEncrypter extends JWEAlgorithmProvider
Callers can query the encrypter to determine its algorithm capabilities.
| Modifier and Type | Method and Description |
|---|---|
JWECryptoParts |
encrypt(ReadOnlyJWEHeader header,
byte[] clearText)
Encrypts the specified clear text of a
JWE object. |
supportedAlgorithms, supportedEncryptionMethodsJWECryptoParts encrypt(ReadOnlyJWEHeader 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 © 2013 NimbusDS. All Rights Reserved.