Interface AuthorizationService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A service to query for user roles.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationServicefrom(LoginService loginService, Object credentials) Wraps aLoginServiceas an AuthorizationServicegetUserIdentity(javax.servlet.http.HttpServletRequest request, String name)
-
Method Details
-
getUserIdentity
- Parameters:
request- the current HTTP requestname- the user name- Returns:
- a
UserIdentityto query for roles of the given user
-
from
Wraps a
LoginServiceas an AuthorizationService- Parameters:
loginService- theLoginServiceto wrap- Returns:
- an AuthorizationService that delegates the query for roles to the given
LoginService
-