org.ow2.jonas.web.tomcat6
Class ResetAuthenticationValve

java.lang.Object
  extended by org.apache.catalina.valves.ValveBase
      extended by org.ow2.jonas.web.tomcat6.ResetAuthenticationValve
All Implemented Interfaces:
MBeanRegistration, org.apache.catalina.Contained, org.apache.catalina.Valve

public class ResetAuthenticationValve
extends org.apache.catalina.valves.ValveBase

This valve reset the authentication and propagate the cached principal Authenticator valve will be called after (if an authentication is needed further).

Author:
Florent Benoit

Field Summary
 
Fields inherited from class org.apache.catalina.valves.ValveBase
container, containerLog, controller, domain, info, mserver, next, oname, sm
 
Constructor Summary
ResetAuthenticationValve()
           
 
Method Summary
 void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response)
          Remove the current authenticated user by setting the anonymous user.
 
Methods inherited from class org.apache.catalina.valves.ValveBase
backgroundProcess, createObjectName, event, getContainer, getContainerName, getController, getDomain, getInfo, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setContainer, setController, setNext, setObjectName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResetAuthenticationValve

public ResetAuthenticationValve()
Method Detail

invoke

public void invoke(org.apache.catalina.connector.Request request,
                   org.apache.catalina.connector.Response response)
            throws IOException,
                   ServletException
Remove the current authenticated user by setting the anonymous user.

Specified by:
invoke in interface org.apache.catalina.Valve
Specified by:
invoke in class org.apache.catalina.valves.ValveBase
Parameters:
request - The servlet request to be processed
response - The servlet response to be created
Throws:
IOException - if an input/output error occurs
ServletException - if a servlet error occurs


Copyright © 2010 OW2 Consortium. All Rights Reserved.