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.
@FunctionalInterface public interface AuthorizationServiceA service to query for user roles.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static AuthorizationServicefrom(LoginService loginService, java.lang.Object credentials)Wraps aLoginServiceas an AuthorizationServiceUserIdentitygetUserIdentity(javax.servlet.http.HttpServletRequest request, java.lang.String name)
-
-
-
Method Detail
-
getUserIdentity
UserIdentity getUserIdentity(javax.servlet.http.HttpServletRequest request, java.lang.String name)
- Parameters:
request- the current HTTP requestname- the user name- Returns:
- a
UserIdentityto query for roles of the given user
-
from
static AuthorizationService from(LoginService loginService, java.lang.Object credentials)
Wraps a
LoginServiceas an AuthorizationService- Parameters:
loginService- theLoginServiceto wrap- Returns:
- an AuthorizationService that delegates the query for roles to the given
LoginService
-
-