public class RoleConstraint extends AbstractConstraint
Constructor and Description |
---|
RoleConstraint() |
Modifier and Type | Method and Description |
---|---|
void |
addRoleName(java.lang.String role) |
AuthorizationResult |
isAuthorized(HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
Returns true if the user is authorized for the resource.
|
boolean |
needsAuthentication()
Returns true if the constraint requires authentication.
|
java.lang.String |
toString() |
isPrivateCache, toArray
public void addRoleName(java.lang.String role)
public boolean needsAuthentication()
needsAuthentication
in class AbstractConstraint
public AuthorizationResult isAuthorized(HttpServletRequest request, HttpServletResponse response, ServletContext application) throws ServletException, java.io.IOException
isAuthorized
in class AbstractConstraint
request
- the servlet requestresponse
- the servlet responseServletException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object