KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > atlassian > seraph > interceptor > LoginInterceptor


1 package com.atlassian.seraph.interceptor;
2
3 import javax.servlet.http.HttpServletRequest JavaDoc;
4 import javax.servlet.http.HttpServletResponse JavaDoc;
5
6 /**
7  * Allows interception of logins.
8  * Useful for doing things like running code after a user logs in (ie date of last login),
9  * cleaning up resources when a user logs out,
10  * or tracking the number of failed authentication attempts against a particular user.
11  */

12 public interface LoginInterceptor extends Interceptor
13 {
14     void beforeLogin(HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response, String JavaDoc username, String JavaDoc password, boolean cookieLogin);
15
16     void afterLogin(HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response, String JavaDoc username, String JavaDoc password, boolean cookieLogin, String JavaDoc loginStatus);
17 }
18
Popular Tags