Interface UsernameRepository


@Deprecated public interface UsernameRepository
Deprecated.
EXPERIMENTAL: This is an experimental feature. It is likely to change or be deleted before reaching a mature release.
An abstraction of optional database lookups needed by this library.

This is used by RelyingPartyV2 to look up usernames and user handles.

  • Method Details

    • getUserHandleForUsername

      @Deprecated Optional<ByteArray> getUserHandleForUsername(String username)
      Deprecated.
      EXPERIMENTAL: This is an experimental feature. It is likely to change or be deleted before reaching a mature release.
      Get the user handle corresponding to the given username - the inverse of getUsernameForUserHandle(ByteArray).

      Used to look up the user handle based on the username, for authentication ceremonies where the username is already given.

    • getUsernameForUserHandle

      @Deprecated Optional<String> getUsernameForUserHandle(ByteArray userHandle)
      Deprecated.
      EXPERIMENTAL: This is an experimental feature. It is likely to change or be deleted before reaching a mature release.
      Get the username corresponding to the given user handle - the inverse of getUserHandleForUsername(String).

      Used to look up the username based on the user handle, for username-less authentication ceremonies.