Class ConfigUserStore.ConfigUser
java.lang.Object
io.helidon.security.providers.httpauth.ConfigUserStore.ConfigUser
- All Implemented Interfaces:
SecureUserStore.User
- Enclosing class:
ConfigUserStore
A user that is loaded from configuration.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigUserStore.ConfigUserCreate a new user from configuration.booleanisPasswordValid(char[] passwordA) Check if the password is valid.login()Get login name.roles()Get set of roles the user is in.toString()
-
Method Details
-
create
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
Description copied from interface:SecureUserStore.UserGet login name.- Specified by:
loginin interfaceSecureUserStore.User- Returns:
- login of the user
-
isPasswordValid
public boolean isPasswordValid(char[] passwordA) Description copied from interface:SecureUserStore.UserCheck if the password is valid. Used by basic authentication.- Specified by:
isPasswordValidin interfaceSecureUserStore.User- Parameters:
passwordA- password of the user as obtained via basic authentication- Returns:
trueif password is valid for this user,falseotherwise
-
roles
Description copied from interface:SecureUserStore.UserGet set of roles the user is in.- Specified by:
rolesin interfaceSecureUserStore.User- Returns:
- roles of this user (or empty if not supported).
-
toString
-