org.jboss.security.valve
Class SSOTokenManager

java.lang.Object
  extended by org.apache.catalina.valves.ValveBase
      extended by org.jboss.security.valve.SSOTokenManager
All Implemented Interfaces:
javax.management.MBeanRegistration, org.apache.catalina.Contained, org.apache.catalina.Valve

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

The SSOTokenManager Tomcat Valve intercepts requests and checks the presence of an SSOToken domain cookie If the user is logged in (Principal is set) and an SSOToken domain cookie does not exist, it creates one for this user for the duration of this session. It should also remove the domain cookie if the user is logged out (No prinicipal found)

This valve is to be used for JAAS based authentication mechanism

Author:
Sohil Shah - sohil.shah@jboss.com

Constructor Summary
SSOTokenManager()
           
 
Method Summary
 java.lang.String getAssertingParty()
           
 void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response)
           
 void setAssertingParty(java.lang.String assertingParty)
           
 
Methods inherited from class org.apache.catalina.valves.ValveBase
backgroundProcess, createObjectName, getContainer, getContainerName, getController, getDomain, getInfo, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setContainer, setController, setNext, setObjectName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSOTokenManager

public SSOTokenManager()
Method Detail

getAssertingParty

public java.lang.String getAssertingParty()
Returns:

setAssertingParty

public void setAssertingParty(java.lang.String assertingParty)
Parameters:
assertingParty -

invoke

public void invoke(org.apache.catalina.connector.Request request,
                   org.apache.catalina.connector.Response response)
            throws java.io.IOException,
                   javax.servlet.ServletException
Specified by:
invoke in interface org.apache.catalina.Valve
Specified by:
invoke in class org.apache.catalina.valves.ValveBase
Throws:
java.io.IOException
javax.servlet.ServletException