restoreKey

abstract fun restoreKey(key: JWK, index: Int? = null): Key(source)

Restores a key from a JWK (JSON Web Key).

Return

The restored Key object.

Parameters

key

The JWK to restore the key from.

index

The index of the key to restore, if it is a key with multiple sub-keys. Default is null.