JsonWebEncryption

JSON Web Encryption (JWE) support routines

Functions

Link copied to clipboard
fun decrypt(encryptedJwt: String, recipientKey: EcPrivateKey): JsonObject

Decrypts an encrypted JWT using ECDH-ES.

Link copied to clipboard
fun encrypt(claimsSet: JsonObject, recipientPublicKey: EcPublicKey, encAlg: Algorithm, apu: ByteString?, apv: ByteString?, random: Random = Random.Default, kid: String? = null, compressionLevel: Int? = null): String

Encrypts a claim set using ECDH-ES.