JweEncryptor

Functional interface for encrypting a content encryption key (CEK) and the 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 encrypt(data: ByteArray, aad: ByteArray, contentAlgorithm: EncryptionContentAlgorithm): JweEncryptResult

Encrypts data using the given contentAlgorithm and returns the full JWE encryption result.

Link copied to clipboard

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