public interface WebAuthorizer extends Authorizer
Authorizer
interface by
including a delgate method for
HttpServletRequest.isUserInRole(String)
.Modifier and Type | Method and Description |
---|---|
boolean |
isUserInRole(javax.servlet.http.HttpServletRequest request,
Principal role)
Determines whether a user associated with an HTTP request possesses
a particular role.
|
findRole, getRoles, initialize, isUserInRole
boolean isUserInRole(javax.servlet.http.HttpServletRequest request, Principal role)
HttpServletRequest.isUserInRole(String)
by converting the Principal's name to a String.request
- the HTTP requestrole
- the role to checktrue
if the user is considered to be in the role,
false
otherwiseCopyright © 2001-2019 The Apache Software Foundation. All rights reserved.