org.jboss.resteasy.auth.oauth
Class OAuthFilter

java.lang.Object
  extended by org.jboss.resteasy.auth.oauth.OAuthFilter
All Implemented Interfaces:
javax.servlet.Filter

public class OAuthFilter
extends java.lang.Object
implements javax.servlet.Filter

OAuth Servlet Filter that interprets OAuth Authentication messages to set the Principal and roles for protected resources.

Author:
Stéphane Épardaud

Field Summary
static java.lang.String OAUTH_AUTH_METHOD
           
 
Constructor Summary
OAuthFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain)
           
 void init(javax.servlet.FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OAUTH_AUTH_METHOD

public static final java.lang.String OAUTH_AUTH_METHOD
See Also:
Constant Field Values
Constructor Detail

OAuthFilter

public OAuthFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

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 filterChain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright © 2009. All Rights Reserved.