org.apache.shindig.auth
Class AuthenticationServletFilter

java.lang.Object
  extended by org.apache.shindig.common.servlet.InjectedFilter
      extended by 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.


Field Summary
static String AUTH_TYPE_OAUTH
           
 
Fields inherited from class org.apache.shindig.common.servlet.InjectedFilter
injector
 
Constructor Summary
AuthenticationServletFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 void setAuthenticationHandlers(List<AuthenticationHandler> handlers)
           
 
Methods inherited from class org.apache.shindig.common.servlet.InjectedFilter
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTH_TYPE_OAUTH

public static final String AUTH_TYPE_OAUTH
See Also:
Constant Field Values
Constructor Detail

AuthenticationServletFilter

public AuthenticationServletFilter()
Method Detail

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.