restorePrivateKey

Restores a private key based on the provided storable key.

Return

The restored private key.

Parameters

key

The storable key to restore the private key from.

Throws

If the restoration identifier is missing or invalid.


open override fun restorePrivateKey(restorationIdentifier: String, privateKeyData: String): PrivateKey(source)

Restores a private key from StorablePrivateKey.

Return

The restored Key object.

Parameters

restorationIdentifier

The restoration identifier to know which type of key it is.

privateKeyData

The private key data encoded in bas64 to restore a private key.


open override fun restorePrivateKey(storablePrivateKey: StorablePrivateKey): PrivateKey(source)

Deprecated (with error)

This method has been deprecated and should no longer be used.

Replace with

restorePrivateKey(restoreIdentifier, privateKeyData)

Restores a private key from StorablePrivateKey.

Return

The restored Key object.

Parameters

storablePrivateKey

The StorablePrivateKey to restore the key from.