KeyRestoration

This interface defines the functionality to verify and restore cryptographic keys

Inheritors

Functions

Link copied to clipboard
abstract fun isPrivateKeyData(identifier: String, data: ByteArray): Boolean

Determines if the input data corresponds to a private key

Link copied to clipboard
abstract fun isPublicKeyData(identifier: String, data: ByteArray): Boolean

Determines if the input data corresponds to a public key

Link copied to clipboard
abstract fun restoreKey(key: JWK, index: Int? = null): Key

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

Link copied to clipboard

A method to restore a private key from a StorableKey

abstract fun restorePrivateKey(storablePrivateKey: StorablePrivateKey): PrivateKey

Restores a private key from StorablePrivateKey.

abstract fun restorePrivateKey(restorationIdentifier: String, privateKeyData: String): PrivateKey

Restores a private key using a restoration identifier and private key data encoded in base 64.

Link copied to clipboard

A method to restore a public key from a StorableKey