public interface JWEEncrypter extends JWEProvider
Modifier and Type | Method and Description |
---|---|
JWECryptoParts |
encrypt(JWEHeader header,
byte[] clearText)
Encrypts the specified clear text of a
JWE object . |
supportedEncryptionMethods, supportedJWEAlgorithms
getJCAContext
JWECryptoParts encrypt(JWEHeader header, byte[] clearText) throws JOSEException
JWE object
.header
- The JSON Web Encryption (JWE) header. Must specify
a supported JWE algorithm and method. Must not be
null
.clearText
- The clear text to encrypt. Must not be null
.JOSEException
- If the JWE algorithm or method is not
supported or if encryption failed for some
other internal reason.Copyright © 2020 Connect2id Ltd.. All rights reserved.