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 TypeMethodDescriptionbooleanisPasswordValid(char[] password) Check if the password is valid.login()Get login name.default Collection<String> roles()Get set of roles the user is in.
-
Method Details
-
login
-
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:
trueif password is valid for this user,falseotherwise
-
roles
Get set of roles the user is in.- Returns:
- roles of this user (or empty if not supported).
-