org.exoplatform.services.security.sso.http
Class SSOAuthenticationFilter
java.lang.Object
org.exoplatform.services.security.sso.http.SSOAuthenticationFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class SSOAuthenticationFilter
- extends Object
- implements javax.servlet.Filter
- Version:
- $Id: $
- Author:
- Andrey Parfonov
|
Method Summary |
static Principal |
authenticate(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Do all work about authentication. |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
|
void |
init(javax.servlet.FilterConfig filterConfig)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSOAuthenticationFilter
public SSOAuthenticationFilter()
destroy
public void destroy()
-
- Specified by:
destroy in interface javax.servlet.Filter
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
-
- Specified by:
doFilter in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
-
- Specified by:
init in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
authenticate
public static final Principal authenticate(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
throws IOException
- Do all work about authentication.
- Parameters:
httpRequest - the request object to check for headers.httpResponse - the response object to set headers and sendError(401).
- Returns:
- Principal id authentication complete and success and null otherwise.
- Throws:
IOException - if i/o error occurs.
Copyright © 2009 eXo Platform SAS. All Rights Reserved.