|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter
public class NuxeoAuthenticationFilter
Servlet filter handling Nuxeo authentication (JAAS + EJB).
Also handles logout and identity switch.
Field Summary | |
---|---|
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 Summary | |
---|---|
NuxeoAuthenticationFilter()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_START_PAGE
public static final String LOGIN_DOMAIN
public static final String IS_LOGIN_NOT_SYNCHRONIZED_PROPERTY_KEY
Constructor Detail |
---|
public NuxeoAuthenticationFilter()
Method Detail |
---|
public void destroy()
destroy
in interface Filter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
IOException
ServletException
public void doFilterInternal(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
IOException
ServletException
public NuxeoAuthenticationPlugin getAuthenticator(CachableUserIdentificationInfo ci)
public void init(FilterConfig config) throws ServletException
init
in interface Filter
ServletException
public 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 name
finally
block
LoginException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |