restorePrivateKey

A method to restore a private key from a StorableKey

Return

a PrivateKey

Parameters

key

a StorableKey instance


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

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

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.


abstract 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.