Theories are seldom true!

Archive for November 6th, 2008

how to secure a web application with Filter?

Posted by: Rajaganesh Vanarajan on: November 6, 2008

This post is aimed at helping some small web application developers to secure their resources from unauthorized access. Just write a filter like this,

public class AuthenticationFilter implements Filter {
private FilterConfig config = null;
public void init(FilterConfig config) throws
ServletException {this.config = config;
}
public void destroy() {
config = null;
}
/*
* FILTER METHOD
*/
public void doFilter(ServletRequest request, ServletResponse response,FilterChain chain) throws IOException, [...]


Friend’ blogs

 

November 2008
M T W T F S S
« Oct   Dec »
 12
3456789
10111213141516
17181920212223
24252627282930

Blog Stats

  • 1,206 hits