|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.security.authorization.AuthorizationFilter
This class implements javax.servlet.Filter and it's purpose is to inspect X509 distinguished names of the clients and attach database connections to the servlet request on the fly after comparing DNs with the data stored in a relational database.
Constructor Summary | |
AuthorizationFilter()
|
Method Summary | |
void |
destroy()
Deallocates stuff. |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain fchain)
Filters the ServletRequest and adds some db information like db connection string into the request via a specific RequestWrapper class. |
void |
init(javax.servlet.FilterConfig filtercfg)
Initializes the filter, loads configuration parameters, creates an instance of the AuthorizationManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AuthorizationFilter()
Method Detail |
public void init(javax.servlet.FilterConfig filtercfg) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
filtercfg
- A configuration object used to pass information to
the filter
javax.servlet.ServletException
- In case of an errorpublic void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain fchain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
req
- The ServletRequest to be filteredres
- The ServletResponsefchain
- The Filterchain defined in the app's web.xml file
java.io.IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |