JweDecryptor

Functional interface for decrypting a JWE token payload.

See also

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The JWE key-encryption algorithm this processor implements.

Link copied to clipboard
abstract val keyId: String?

The optional key ID (kid) associated with the key material used by this processor.

Functions

Link copied to clipboard
abstract suspend fun decrypt(aad: ByteArray, encryptedKey: ByteArray, iv: ByteArray, data: ByteArray, tag: ByteArray, contentAlgorithm: EncryptionContentAlgorithm): ByteArray

Decrypts and authenticates the JWE token components, returning the plaintext payload bytes.

Link copied to clipboard

Merges this BaseJweProcessor with other, producing a combined JweProcessor that supports both encryption and decryption.