toJwk

abstract fun toJwk(additionalClaims: JsonObject? = null): JsonObject

Encodes the private key as a JSON Web Key according to RFC 7517.

By default this only includes the kty, crv, d, x, y (if double-coordinate) claims, use additionalClaims to include other claims.

Return

a JSON Web Key.

Parameters

additionalClaims

additional claims to include or null.