@FunctionalInterface
public interface AuthorizationService
A service to query for user roles.
Modifier and Type | Method and Description |
---|---|
static AuthorizationService |
from(LoginService loginService,
java.lang.Object credentials)
Wraps a
LoginService as an AuthorizationService |
UserIdentity |
getUserIdentity(javax.servlet.http.HttpServletRequest request,
java.lang.String name) |
UserIdentity getUserIdentity(javax.servlet.http.HttpServletRequest request, java.lang.String name)
request
- the current HTTP requestname
- the user nameUserIdentity
to query for roles of the given userstatic AuthorizationService from(LoginService loginService, java.lang.Object credentials)
Wraps a LoginService
as an AuthorizationService
loginService
- the LoginService
to wrapcredentials
- LoginService
Copyright © 1995–2023 Webtide. All rights reserved.