SealdSSKSPasswordPlugin
class SealdSSKSPasswordPlugin(apiURL: String, appId: String)
The SealdSSKSPassword class allows to use the SSKS key storage service to store Seald identities easily and securely, encrypted by a user password.
Parameters
apiURL | The Seald server for this instance to use. This value is given on your Seald dashboard. |
appId | The ID given by the Seald server to your app. This value is given on your Seald dashboard. |
Constructors
SealdSSKSPasswordPlugin | constructor(apiURL: String, appId: String) |
Functions
Name | Summary |
---|---|
changeIdentityPassword | fun changeIdentityPassword(userId: String, currentPassword: String, newPassword: String) Change the password use to encrypt the identity for the userId. |
changeIdentityPasswordAsync | suspend fun changeIdentityPasswordAsync(userId: String, currentPassword: String, newPassword: String) Change the password use to encrypt the identity for the userId. |
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. |
retrieveIdentityFromPasswordAsync | suspend fun retrieveIdentityFromPasswordAsync(userId: String, password: String): ByteArray Retrieve the identity stored on the SSKS server for the given userId, and decrypt it with the given password. |
retrieveIdentityFromRawKeys | fun retrieveIdentityFromRawKeys(userId: String, rawStorageKey: String, rawEncryptionKey: ByteArray): ByteArray Retrieve the identity stored on the SSKS server for the given userId, and decrypt it with the given raw keys. |
retrieveIdentityFromRawKeysAsync | suspend fun retrieveIdentityFromRawKeysAsync(userId: String, rawStorageKey: String, rawEncryptionKey: ByteArray): ByteArray Retrieve the identity stored on the SSKS server for the given userId, and decrypt it with the given raw keys. |
saveIdentityFromPassword | fun saveIdentityFromPassword(userId: String, password: String, identity: ByteArray) Save the given identity for the given userId, encrypted with the given password. |
saveIdentityFromPasswordAsync | suspend fun saveIdentityFromPasswordAsync(userId: String, password: String, identity: ByteArray) Save the given identity for the given userId, encrypted with the given password. |
saveIdentityFromRawKeys | fun saveIdentityFromRawKeys(userId: String, rawStorageKey: String, rawEncryptionKey: ByteArray, identity: ByteArray) Save the given identity for the given userId, encrypted with the given raw keys. |
saveIdentityFromRawKeysAsync | suspend fun saveIdentityFromRawKeysAsync(userId: String, rawStorageKey: String, rawEncryptionKey: ByteArray, identity: ByteArray) Save the given identity for the given userId, encrypted with the given raw keys. |