Interface UserStore.User
-
- All Superinterfaces:
SecureUserStore.User
- Enclosing interface:
- UserStore
public static interface UserStore.User extends SecureUserStore.User
Representation of a single user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<String>digestHa1(String realm, HttpDigest.Algorithm algorithm)Digest authentication requires a hash of username, realm and password.default booleanisPasswordValid(char[] password)Check if the password is valid.char[]password()Get password of the user.-
Methods inherited from interface io.helidon.security.providers.httpauth.SecureUserStore.User
login, roles
-
-
-
-
Method Detail
-
password
char[] password()
Get password of the user. The password must be provided in clear text, as we may need to create a digest based on the password and other (variable) values for digest authentication.- Returns:
- password
-
isPasswordValid
default boolean isPasswordValid(char[] password)
Description copied from interface:SecureUserStore.UserCheck if the password is valid. Used by basic authentication.- Specified by:
isPasswordValidin interfaceSecureUserStore.User- Parameters:
password- password of the user as obtained via basic authentication- Returns:
trueif password is valid for this user,falseotherwise
-
digestHa1
default Optional<String> digestHa1(String realm, HttpDigest.Algorithm algorithm)
Description copied from interface:SecureUserStore.UserDigest authentication requires a hash of username, realm and password. As password should not be revealed by systems, this is to provide the HA1 (from Digest Auth terminology) based on the known (public) information combined with the secret information available to user store only (password).ha1 algorithm (
unqstands for "unquoted value")ha1 = md5(a1); a1 = unq(username-value) ":" unq(realm-value) ":" passwd- Specified by:
digestHa1in interfaceSecureUserStore.User- Parameters:
realm- configured realmalgorithm- algorithm of the hash (current only MD5 supported by Helidon)- Returns:
- a digest to use for validation of incoming request
-
-