EncryptionContentAlgorithm

Sealed class representing the JWE content encryption algorithms defined in RFC 7518 §5.

The content encryption algorithm determines how the plaintext payload is encrypted and integrity-protected inside the JWE compact serialization. The supported algorithms are:

Use fromId to look up an instance by its JWA identifier string.

See also

Inheritors

Types

Link copied to clipboard

AES-128 CBC with HMAC-SHA-256 (A128CBC-HS256) content encryption algorithm.

Link copied to clipboard

AES-128 in GCM mode (A128GCM) content encryption algorithm.

Link copied to clipboard

AES-192 CBC with HMAC-SHA-384 (A192CBC-HS384) content encryption algorithm.

Link copied to clipboard

AES-192 in GCM mode (A192GCM) content encryption algorithm.

Link copied to clipboard

AES-256 CBC with HMAC-SHA-512 (A256CBC-HS512) content encryption algorithm.

Link copied to clipboard

AES-256 in GCM mode (A256GCM) content encryption algorithm.

Link copied to clipboard

Base class for AES CBC + HMAC content encryption algorithms (A128CBC-HS256, A192CBC-HS384, A256CBC-HS512).

Link copied to clipboard

Base class for AES GCM content encryption algorithms (A128GCM, A192GCM, A256GCM).

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val id: String

The JWA content encryption algorithm identifier string (e.g. "A256GCM").

Functions

Link copied to clipboard
open override fun toString(): String