|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.server.security.AbstractConstraint
com.caucho.server.security.PermitEmptyRolesConstraint
public class PermitEmptyRolesConstraint
Constructor Summary | |
---|---|
PermitEmptyRolesConstraint(boolean permit)
|
Method Summary | |
---|---|
AuthorizationResult |
isAuthorized(HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
Returns true if the user is authorized for the resource. |
Methods inherited from class com.caucho.server.security.AbstractConstraint |
---|
isPrivateCache, needsAuthentication, toArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PermitEmptyRolesConstraint(boolean permit)
Method Detail |
---|
public AuthorizationResult isAuthorized(HttpServletRequest request, HttpServletResponse response, ServletContext application) throws ServletException, java.io.IOException
AbstractConstraint
isAuthorized must provide the response if the user is not authorized. Typically this will just call sendError.
isAuthorized will be called after all the other filters, but before the servlet.service().
isAuthorized
in class AbstractConstraint
request
- the servlet requestresponse
- the servlet response
ServletException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |