Class ConfigUserStore.ConfigUser

java.lang.Object
io.helidon.security.providers.httpauth.ConfigUserStore.ConfigUser
All Implemented Interfaces:
SecureUserStore.User
Enclosing class:
ConfigUserStore

public static class ConfigUserStore.ConfigUser extends Object implements SecureUserStore.User
A user that is loaded from configuration.
  • Method Details

    • create

      public static ConfigUserStore.ConfigUser create(Config config)
      Create a new user from configuration. The configuration must be located on the user's node.
      Parameters:
      config - configuration instance
      Returns:
      a new config user with the configured login, password, and roles
    • login

      public String login()
      Description copied from interface: SecureUserStore.User
      Get login name.
      Specified by:
      login in interface SecureUserStore.User
      Returns:
      login of the user
    • isPasswordValid

      public boolean isPasswordValid(char[] passwordA)
      Description copied from interface: SecureUserStore.User
      Check if the password is valid. Used by basic authentication.
      Specified by:
      isPasswordValid in interface SecureUserStore.User
      Parameters:
      passwordA - password of the user as obtained via basic authentication
      Returns:
      true if password is valid for this user, false otherwise
    • roles

      public Set<String> roles()
      Description copied from interface: SecureUserStore.User
      Get set of roles the user is in.
      Specified by:
      roles in interface SecureUserStore.User
      Returns:
      roles of this user (or empty if not supported).
    • toString

      public String toString()
      Overrides:
      toString in class Object