|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.http.security.AbstractConstraint
Constructor Summary | |
AbstractConstraint()
|
Method Summary | |
abstract boolean |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractConstraint()
Method Detail |
public boolean needsAuthentication()
public abstract boolean isAuthorized(HttpServletRequest request, HttpServletResponse response, ServletContext application) throws ServletException, java.io.IOException
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().
request
- the servlet requestresponse
- the servlet response
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |