restoreKey

open override fun restoreKey(key: JWK, index: Int?): 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.