JweEncryptResult

class JweEncryptResult(val encryptedKey: ByteArray, val iv: ByteArray, val ciphertext: ByteArray, val tag: ByteArray)(source)

Holds the raw byte outputs produced by a JWE content encryption operation.

Instances are created by co.touchlab.kjwt.processor.JweProcessor implementations and consumed by co.touchlab.kjwt.builder.JwtBuilder to assemble the five-part JWE compact serialization per RFC 7516.

Constructors

Link copied to clipboard
constructor(encryptedKey: ByteArray, iv: ByteArray, ciphertext: ByteArray, tag: ByteArray)

Properties

Link copied to clipboard

The ciphertext bytes produced by content encryption.

Link copied to clipboard

The encrypted Content Encryption Key (CEK) bytes; may be empty for dir key management.

Link copied to clipboard

The initialization vector bytes used during content encryption.

Link copied to clipboard

The authentication tag bytes produced by content encryption.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String