org.sourceid.saml20.service.impl.multicast
Class InterRequestStateMgmtMulticastImpl

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

public class InterRequestStateMgmtMulticastImpl
extends java.lang.Object
implements InterRequestStateMgmt


Field Summary
protected  org.sourceid.config.ConfigStore config
           
protected  org.apache.commons.logging.Log log
           
protected  org.jgroups.util.Promise promise
           
protected  org.jgroups.blocks.RpcDispatcher rpcDispatcher
           
protected  org.sourceid.saml20.state.StateAccepter stateAccepter
           
protected  int timeout
           
 
Constructor Summary
InterRequestStateMgmtMulticastImpl()
           
 
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 stateKey)
          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
 

Field Detail

log

protected final org.apache.commons.logging.Log log

config

protected final org.sourceid.config.ConfigStore config

timeout

protected final int timeout

stateAccepter

protected final org.sourceid.saml20.state.StateAccepter stateAccepter

rpcDispatcher

protected final org.jgroups.blocks.RpcDispatcher rpcDispatcher

promise

protected final org.jgroups.util.Promise promise
Constructor Detail

InterRequestStateMgmtMulticastImpl

public InterRequestStateMgmtMulticastImpl()
                                   throws org.jgroups.ChannelException
Throws:
org.jgroups.ChannelException
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 stateKey)
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.