|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.tomcat.core.BaseInterceptor
org.apache.tomcat.modules.aaa.AccessInterceptor
Access control - find if a request matches any web-resource-collection and set the "required" attributes. The spec requires additive checking ( i.e. there is no "best match" defined, but "all requests that contain a request path that mathces the URL pattern in the resource collection are subject to the constraing" ). In "integrated" mode this interceptor will be no-op, we'll use the web server ( assuming we can map the security to web-server equivalent concepts - I think we can do that, but need to experiment with that)
| Field Summary |
| Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
ct, ctx, debug, DECLINED, loghelper, OK |
| Constructor Summary | |
AccessInterceptor()
|
|
| Method Summary | |
void |
addContainer(Container ct)
Notify that certain properties are defined for a URL pattern. |
int |
authorize(Request req,
Response response,
java.lang.String[] roles)
Handle authorization for requests where certain roles are requires, and a user/password scheme is used to authenticate the user ( BASIC, FORM ) and find the user roles. |
void |
contextInit(Context ctx)
Notify when a context is initialized. |
void |
engineInit(ContextManager cm)
Set the context manager. |
void |
removeContainer(Container ct)
A rule was removed, update the internal strucures. |
int |
requestMap(Request req)
Check if this request requires auth, and if so check the roles. |
void |
setIgnoreCase(boolean b)
Use case insensitive match, for windows and similar platforms |
| Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContext, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, beforeBody, beforeCommit, contextMap, contextShutdown, contextState, copyContext, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getInfo, getLog, getNote, getNote, handleError, log, log, log, log, postInitCheck, postReadRequest, postRequest, postService, postServletDestroy, postServletInit, preInitCheck, preService, preServletDestroy, preServletInit, registerHooks, reload, removeContext, removeHandler, removeInterceptor, sessionState, setContext, setContextManager, setDebug, setInfo, setNote, setNote |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AccessInterceptor()
| Method Detail |
public void setIgnoreCase(boolean b)
public void engineInit(ContextManager cm)
throws TomcatException
engineInit in class BaseInterceptorTomcatException - The module will not be added if any
exception is thrown by engineInit.
public void contextInit(Context ctx)
throws TomcatException
BaseInterceptor
contextInit in class BaseInterceptorTomcatException
public void removeContainer(Container ct)
throws TomcatException
BaseInterceptor
removeContainer in class BaseInterceptorTomcatException
public void addContainer(Container ct)
throws TomcatException
BaseInterceptor
addContainer in class BaseInterceptorTomcatExceptionpublic int requestMap(Request req)
requestMap in class BaseInterceptor
public int authorize(Request req,
Response response,
java.lang.String[] roles)
authorize in class BaseInterceptor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||