Interface UserCredentialStore

    • Method Detail

      • removeStoredCredential

        boolean removeStoredCredential​(RealmModel realm,
                                       UserModel user,
                                       String id)
        Removes credential with the id for the user.
        Parameters:
        realm - realm.
        user - user
        id - id
        Returns:
        true if the credential was removed, false otherwise TODO: Make this method return Boolean so that store can return "I don't know" answer, this can be used for example in async stores
      • getStoredCredentialsStream

        Stream<CredentialModel> getStoredCredentialsStream​(RealmModel realm,
                                                           UserModel user)
        Obtains the stored credentials associated with the specified user.
        Parameters:
        realm - a reference to the realm.
        user - the user whose credentials are being searched.
        Returns:
        a non-null Stream of credentials.
      • getStoredCredentialsByTypeStream

        Stream<CredentialModel> getStoredCredentialsByTypeStream​(RealmModel realm,
                                                                 UserModel user,
                                                                 String type)
        Obtains the stored credentials associated with the specified user that match the specified type.
        Parameters:
        realm - a reference to the realm.
        user - the user whose credentials are being searched.
        type - the type of credentials being searched.
        Returns:
        a non-null Stream of credentials.