Skip to content

retrieveIdentityFromPassword

fun retrieveIdentityFromPassword(userId: String, password: String): ByteArray

Retrieve the identity stored on the SSKS server for the given userId, and decrypt it with the given password.

If you use an incorrect password multiple times, the server may throttle your requests. In this case, you will receive an error Request throttled, retry after {N}s, with {N} the number of seconds during which you cannot try again.

Return

The clear identity as ByteArray.

Parameters

userIdThe ID of the userId.
passwordThe password to decrypt the key.

Throws

SealdException