recreateKey

open fun <T : Key?> recreateKey(key: String, isPrivateKey: Boolean): T

Method to recreate from a String source a key

Return

the key recreated as T

Parameters

key

: the string source from recreate the RSA key

isPrivateKey

: whether the key to recreate is a private key