Interface SecureUserStore.User

All Known Implementing Classes:
ConfigUserStore.ConfigUser
Enclosing interface:
SecureUserStore

public static interface SecureUserStore.User
Representation of a single user.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isPasswordValid(char[] password)
    Check if the password is valid.
    Get login name.
    Get set of roles the user is in.
  • Method Details

    • login

      String login()
      Get login name.
      Returns:
      login of the user
    • isPasswordValid

      boolean isPasswordValid(char[] password)
      Check if the password is valid. Used by basic authentication.
      Parameters:
      password - password of the user as obtained via basic authentication
      Returns:
      true if password is valid for this user, false otherwise
    • roles

      default Collection<String> roles()
      Get set of roles the user is in.
      Returns:
      roles of this user (or empty if not supported).