public class LoginInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
LICENSE_INFO |
static String |
PERSON_SESSION_KEY |
static String |
USER_STATUS |
| Constructor and Description |
|---|
LoginInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Environment |
getEnvironment() |
static String |
getLoggedInUser() |
protected String |
getRemoteUser(javax.servlet.http.HttpServletRequest request)
Hook for subclasses to override the shibboleth default behaviour
|
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
void |
setEnvironment(Environment environment) |
static void |
setLoggedInUser(String userId) |
public static final String USER_STATUS
public static final String PERSON_SESSION_KEY
public static final String LICENSE_INFO
public boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
throws Exception
preHandle in interface org.springframework.web.servlet.HandlerInterceptorpreHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapterExceptionprotected String getRemoteUser(javax.servlet.http.HttpServletRequest request)
request - the httpRequestpublic static String getLoggedInUser()
public static void setLoggedInUser(String userId)
userId - user that has to be logged inpublic Environment getEnvironment()
public void setEnvironment(Environment environment)
environment - the environment to setCopyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.