Package org.apache.wiki.auth.authorize
Interface WebAuthorizer
-
- All Superinterfaces:
Authorizer
- All Known Implementing Classes:
WebContainerAuthorizer
public interface WebAuthorizer extends Authorizer
Extends theAuthorizerinterface by including a delegate method forHttpServletRequest.isUserInRole(String).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisUserInRole(javax.servlet.http.HttpServletRequest request, java.security.Principal role)Determines whether a user associated with an HTTP request possesses a particular role.-
Methods inherited from interface org.apache.wiki.auth.Authorizer
findRole, getRoles, initialize, isUserInRole
-
-
-
-
Method Detail
-
isUserInRole
boolean isUserInRole(javax.servlet.http.HttpServletRequest request, java.security.Principal role)
Determines whether a user associated with an HTTP request possesses a particular role. This method simply delegates toHttpServletRequest.isUserInRole(String)by converting the Principal's name to a String.- Parameters:
request- the HTTP requestrole- the role to check- Returns:
trueif the user is considered to be in the role,falseotherwise
-
-