org.sourceid.saml20.service.impl.proxy
Class InterRequestStateMgmtProxy

java.lang.Object
  extended by org.sourceid.saml20.service.impl.proxy.InterRequestStateMgmtProxy
All Implemented Interfaces:
InterRequestStateMgmt

public class InterRequestStateMgmtProxy
extends java.lang.Object
implements InterRequestStateMgmt


Constructor Summary
InterRequestStateMgmtProxy()
           
 
Method Summary
 void cleanup(java.lang.String sessionId)
          Clean up any orphaned state associated with this session id.
 org.sourceid.saml20.state.State retrieveAndRemoveState(java.lang.String id)
          Retrieve the state associated with the given key.
 void saveState(java.lang.String sessionId, java.lang.String stateKey, org.sourceid.saml20.state.State state)
          Associate the state object with the given key (so that it can be retrieved by InterRequestStateMgmt.retrieveAndRemoveState(String)).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterRequestStateMgmtProxy

public InterRequestStateMgmtProxy()
                           throws java.lang.IllegalAccessException,
                                  java.lang.InstantiationException
Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
Method Detail

saveState

public void saveState(java.lang.String sessionId,
                      java.lang.String stateKey,
                      org.sourceid.saml20.state.State state)
Description copied from interface: InterRequestStateMgmt
Associate the state object with the given key (so that it can be retrieved by InterRequestStateMgmt.retrieveAndRemoveState(String)). Also keep an association with the session id in order to clean up any state that was orphaned by errant users.

Specified by:
saveState in interface InterRequestStateMgmt
Parameters:
sessionId - the session id of the user that this state is associated with.
stateKey - the key against which the state is stored.
state - the state to store.

retrieveAndRemoveState

public org.sourceid.saml20.state.State retrieveAndRemoveState(java.lang.String id)
Description copied from interface: InterRequestStateMgmt
Retrieve the state associated with the given key.

Specified by:
retrieveAndRemoveState in interface InterRequestStateMgmt
Returns:
the state object associated with the key

cleanup

public void cleanup(java.lang.String sessionId)
Description copied from interface: InterRequestStateMgmt
Clean up any orphaned state associated with this session id.

Specified by:
cleanup in interface InterRequestStateMgmt


Copyright 2007 Ping Identity Corp. All rights reserved.