org.exoplatform.ws.security.oauth.http
Class OAuthLogoutFilter

java.lang.Object
  extended by org.exoplatform.ws.security.oauth.http.OAuthLogoutFilter
All Implemented Interfaces:
javax.servlet.Filter

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

Can be used in logout process, client MUST pass parameter query parameter logout=yes. In filter init parameters must present consumer name as it done for OAuthConsumerFilter, otherwise exception will be thrown. Usually can be configured last in web.xml, for sure after OAuthConsumerFilter.

Version:
$Id: $
Author:
Andrey Parfonov

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

Constructor Detail

OAuthLogoutFilter

public OAuthLogoutFilter()
Method Detail

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 java.io.IOException,
                     javax.servlet.ServletException

Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException

Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.