com.atlassian.confluence.user
Class ConfluenceLoginInterceptor

java.lang.Object
  extended by com.atlassian.confluence.user.ConfluenceLoginInterceptor
All Implemented Interfaces:
com.atlassian.seraph.Initable, com.atlassian.seraph.interceptor.Interceptor, com.atlassian.seraph.interceptor.LoginInterceptor

public class ConfluenceLoginInterceptor
extends java.lang.Object
implements com.atlassian.seraph.interceptor.LoginInterceptor


Constructor Summary
ConfluenceLoginInterceptor()
           
 
Method Summary
 void afterLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String username, java.lang.String password, boolean cookieLogin, java.lang.String loginStatus)
          This method keeps track of the most recent and most recent but one login date and times for the user who has just logged in.
 void beforeLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String username, java.lang.String password, boolean cookieLogin)
           
 void destroy()
           
 void init(java.util.Map map, com.atlassian.seraph.config.SecurityConfig securityConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceLoginInterceptor

public ConfluenceLoginInterceptor()
Method Detail

beforeLogin

public void beforeLogin(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response,
                        java.lang.String username,
                        java.lang.String password,
                        boolean cookieLogin)
Specified by:
beforeLogin in interface com.atlassian.seraph.interceptor.LoginInterceptor

afterLogin

public void afterLogin(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       java.lang.String username,
                       java.lang.String password,
                       boolean cookieLogin,
                       java.lang.String loginStatus)
This method keeps track of the most recent and most recent but one login date and times for the user who has just logged in. Note that it removes values before setting them, as prior versions of Confluence stored the login date as a Long, not a Date.

Specified by:
afterLogin in interface com.atlassian.seraph.interceptor.LoginInterceptor

destroy

public void destroy()
Specified by:
destroy in interface com.atlassian.seraph.interceptor.Interceptor

init

public void init(java.util.Map map,
                 com.atlassian.seraph.config.SecurityConfig securityConfig)
Specified by:
init in interface com.atlassian.seraph.Initable


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.