ExportableKey

This interface defines what is required for a key to be exportable

Inheritors

Functions

Link copied to clipboard
abstract fun getJwk(): JWK

They key exported as a JWK (JSON Web Key)

Link copied to clipboard
abstract fun getPem(): String

The key exported in PEM (Privacy-Enhanced Mail) format.

Link copied to clipboard
abstract fun jwkWithKid(kid: String): JWK

Returns the key as a JWD with a specific kid (key identifier)