Interface SecureUserStore
- All Known Implementing Classes:
ConfigUserStore
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Store of users for resolving HTTP basic authentication.
This implementation does not require exposing stored passwords to the provider itself.
Keep in mind that HTTP Basic authentication is unsafe even when combined with SSL and should only be used for
local testing and demos.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresentation of a single user. -
Method Summary
Modifier and TypeMethodDescriptionGet user based on login.
-
Method Details
-
user
Get user based on login. The returned user may not be populated -SecureUserStore.User.roles()is never called beforeSecureUserStore.User.isPasswordValid(char[]). Also the missing user and user with wrong password are treated the same - so if your implementation cannot decide whether a user exists until the password is checked, you can delay that decision and just returnfalsefromSecureUserStore.User.isPasswordValid(char[])for both cases (e.g. invalid user and invalid password).- Parameters:
login- login of the user (as obtained from request)- Returns:
- User information (empty if user is not found)
-