UserStorage
A type representing storage
Already registered users will be kept in it between app launches.
Methods of this interface must not be called outside of the SDK, as they are intended to be only for internal usage.
Keep in mind, that this interface doesn’t provide any data encryption and developers should take care of this by themselves.
By default this SDK uses a concrete implementation of this interface RoomUserStorage.
interface UserStorage
Functions
Name | Summary |
---|---|
add | Brief description Adds a registered user to the user storage. Content abstract fun add(authenticationUser: AuthenticationUser) Brief description Adds new Signing User to the storage. Content abstract fun add(signingUser: SigningUser) |
authenticationUsers | Brief description Returns all users from the user storage. Content abstract fun authenticationUsers(): List<AuthenticationUser> |
delete | Brief description Deletes a registered user from the user storage. Content abstract fun delete(authenticationUser: AuthenticationUser) Brief description Deletes a Signing user. Content abstract fun delete(signingUser: SigningUser) |
equals | Content open operator override fun equals(other: Any?): Boolean |
hashCode | Content open override fun hashCode(): Int |
loadStorage | Brief description Prepares the user storage to be used. Called once on initialization of the SDK. Content abstract fun loadStorage() |
signingUserExists | Brief description Check whether there is a Signing User in the storage with the given user id. Content abstract fun signingUserExists(userId: String): Boolean |
signingUsers | Brief description Get all Signing users written in the storage. Content abstract fun signingUsers(): List<SigningUser> |
toString | Content open override fun toString(): String |
userExists | Brief description Checks whether there is a user with the same Id in the user storage. Content abstract fun userExists(userId: String): Boolean |