Skip to content
Sur cette page

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

apiURLThe Seald server for this instance to use. This value is given on your Seald dashboard.
appIdThe ID given by the Seald server to your app. This value is given on your Seald dashboard.

Constructors

SealdSSKSPasswordPluginconstructor(apiURL: String, appId: String)

Functions

NameSummary
changeIdentityPasswordfun changeIdentityPassword(userId: String, currentPassword: String, newPassword: String)
Change the password use to encrypt the identity for the userId.
changeIdentityPasswordAsyncsuspend fun changeIdentityPasswordAsync(userId: String, currentPassword: String, newPassword: String)
Change the password use to encrypt the identity for the userId.
retrieveIdentityFromPasswordfun 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.
retrieveIdentityFromPasswordAsyncsuspend 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.
retrieveIdentityFromRawKeysfun 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.
retrieveIdentityFromRawKeysAsyncsuspend 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.
saveIdentityFromPasswordfun saveIdentityFromPassword(userId: String, password: String, identity: ByteArray)
Save the given identity for the given userId, encrypted with the given password.
saveIdentityFromPasswordAsyncsuspend fun saveIdentityFromPasswordAsync(userId: String, password: String, identity: ByteArray)
Save the given identity for the given userId, encrypted with the given password.
saveIdentityFromRawKeysfun saveIdentityFromRawKeys(userId: String, rawStorageKey: String, rawEncryptionKey: ByteArray, identity: ByteArray)
Save the given identity for the given userId, encrypted with the given raw keys.
saveIdentityFromRawKeysAsyncsuspend fun saveIdentityFromRawKeysAsync(userId: String, rawStorageKey: String, rawEncryptionKey: ByteArray, identity: ByteArray)
Save the given identity for the given userId, encrypted with the given raw keys.