Package org.jose4j.jwe
Interface ContentEncryptionAlgorithm
- All Superinterfaces:
Algorithm
- All Known Implementing Classes:
AesCbcHmacSha2ContentEncryptionAlgorithm,AesCbcHmacSha2ContentEncryptionAlgorithm.Aes128CbcHmacSha256,AesCbcHmacSha2ContentEncryptionAlgorithm.Aes192CbcHmacSha384,AesCbcHmacSha2ContentEncryptionAlgorithm.Aes256CbcHmacSha512,AesGcmContentEncryptionAlgorithm,AesGcmContentEncryptionAlgorithm.Aes128Gcm,AesGcmContentEncryptionAlgorithm.Aes192Gcm,AesGcmContentEncryptionAlgorithm.Aes256Gcm
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]decrypt(ContentEncryptionParts contentEncryptionParts, byte[] aad, byte[] contentEncryptionKey, Headers headers, ProviderContext providerContext) encrypt(byte[] plaintext, byte[] aad, byte[] contentEncryptionKey, Headers headers, byte[] ivOverride, ProviderContext providerContext) Methods inherited from interface org.jose4j.jwa.Algorithm
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType, isAvailable
-
Method Details
-
getContentEncryptionKeyDescriptor
ContentEncryptionKeyDescriptor getContentEncryptionKeyDescriptor() -
encrypt
ContentEncryptionParts encrypt(byte[] plaintext, byte[] aad, byte[] contentEncryptionKey, Headers headers, byte[] ivOverride, ProviderContext providerContext) throws JoseException - Throws:
JoseException
-
decrypt
byte[] decrypt(ContentEncryptionParts contentEncryptionParts, byte[] aad, byte[] contentEncryptionKey, Headers headers, ProviderContext providerContext) throws JoseException - Throws:
JoseException
-