Package com.nimbusds.jose
Interface JWEEncrypter
-
- All Superinterfaces:
JCAAware<JWEJCAContext>,JOSEProvider,JWEProvider
- All Known Implementing Classes:
AESEncrypter,DirectEncrypter,ECDH1PUEncrypter,ECDH1PUX25519Encrypter,ECDHEncrypter,PasswordBasedEncrypter,RSAEncrypter,X25519Encrypter
public interface JWEEncrypter extends JWEProvider
JSON Web Encryption (JWE) encrypter.- Version:
- 2015-05-21
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JWECryptoPartsencrypt(JWEHeader header, byte[] clearText)Encrypts the specified clear text of aJWE object.-
Methods inherited from interface com.nimbusds.jose.jca.JCAAware
getJCAContext
-
Methods inherited from interface com.nimbusds.jose.JWEProvider
supportedEncryptionMethods, supportedJWEAlgorithms
-
-
-
-
Method Detail
-
encrypt
JWECryptoParts encrypt(JWEHeader header, byte[] clearText) throws JOSEException
Encrypts the specified clear text of aJWE object.- Parameters:
header- The JSON Web Encryption (JWE) header. Must specify a supported JWE algorithm and method. Must not benull.clearText- The clear text to encrypt. Must not benull.- Returns:
- The resulting JWE crypto parts.
- Throws:
JOSEException- If the JWE algorithm or method is not supported or if encryption failed for some other internal reason.
-
-