public class NuxeoAuthenticationFilter extends Object implements Filter
Also handles logout and identity switch.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_START_PAGE |
static String |
IS_LOGIN_NOT_SYNCHRONIZED_PROPERTY_KEY |
static String |
LOGIN_DOMAIN
LoginContext domain name in use by default in Nuxeo.
|
| Constructor and Description |
|---|
NuxeoAuthenticationFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
void |
doFilterInternal(ServletRequest request,
ServletResponse response,
FilterChain chain) |
NuxeoAuthenticationPlugin |
getAuthenticator(CachableUserIdentificationInfo ci) |
static String |
getRequestedPage(ServletRequest request) |
static String |
getRequestedUrl(HttpServletRequest httpRequest) |
void |
init(FilterConfig config) |
static LoginContext |
loginAs(String username)
Does a forced login as the given user.
|
boolean |
saveRequestedURLBeforeRedirect(HttpServletRequest httpRequest,
HttpServletResponse httpResponse)
Save requested URL before redirecting to login form.
|
public static final String DEFAULT_START_PAGE
public static final String LOGIN_DOMAIN
public static final String IS_LOGIN_NOT_SYNCHRONIZED_PROPERTY_KEY
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter in interface FilterIOExceptionServletExceptionpublic void doFilterInternal(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
IOExceptionServletExceptionpublic NuxeoAuthenticationPlugin getAuthenticator(CachableUserIdentificationInfo ci)
public void init(FilterConfig config) throws ServletException
init in interface FilterServletExceptionpublic boolean saveRequestedURLBeforeRedirect(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
Returns true if target url is a valid startup page.
public static String getRequestedUrl(HttpServletRequest httpRequest)
public static String getRequestedPage(ServletRequest request)
public static LoginContext loginAs(String username) throws LoginException
username - the user namefinally blockLoginExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.