org.apache.shindig.auth
Class AuthenticationServletFilter
java.lang.Object
org.apache.shindig.common.servlet.InjectedFilter
org.apache.shindig.auth.AuthenticationServletFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class AuthenticationServletFilter
- extends InjectedFilter
Filter that attempts to authenticate an incoming HTTP request. It uses the
guice injected AuthenticationHandlers to try and generate a SecurityToken
from the request. Once it finds a non null token it passes that on the chain.
If you wish to add a container specific type of auth system simply register
an additional handler.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUTH_TYPE_OAUTH
public static final String AUTH_TYPE_OAUTH
- See Also:
- Constant Field Values
AuthenticationServletFilter
public AuthenticationServletFilter()
setAuthenticationHandlers
@Inject
public void setAuthenticationHandlers(List<AuthenticationHandler> handlers)
destroy
public void destroy()
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2007-2012. All Rights Reserved.