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, toArraypublic void addRoleName(java.lang.String role)
public boolean needsAuthentication()
needsAuthentication in class AbstractConstraintpublic AuthorizationResult isAuthorized(HttpServletRequest request, HttpServletResponse response, ServletContext application) throws ServletException, java.io.IOException
isAuthorized in class AbstractConstraintrequest - the servlet requestresponse - the servlet responseServletExceptionjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object