org.sourceid.saml20.service.impl.localmemory
Class InterReqStateMgmtMapImpl
java.lang.Object
org.sourceid.saml20.service.impl.localmemory.InterReqStateMgmtMapImpl
- All Implemented Interfaces:
- java.io.Serializable, InterRequestStateMgmt, org.sourceid.saml20.state.StateAccepter
public class InterReqStateMgmtMapImpl
- extends java.lang.Object
- implements InterRequestStateMgmt, org.sourceid.saml20.state.StateAccepter, java.io.Serializable
- See Also:
- Serialized Form
Field Summary |
protected java.util.Map<java.lang.String,java.lang.String> |
keyToSessionIdMap
|
protected java.util.LinkedHashMap<java.lang.String,org.sourceid.saml20.state.State> |
keyToStateMap
|
protected java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
sessionIdToKeysMap
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keyToStateMap
protected java.util.LinkedHashMap<java.lang.String,org.sourceid.saml20.state.State> keyToStateMap
sessionIdToKeysMap
protected java.util.Map<java.lang.String,java.util.Set<java.lang.String>> sessionIdToKeysMap
keyToSessionIdMap
protected java.util.Map<java.lang.String,java.lang.String> keyToSessionIdMap
InterReqStateMgmtMapImpl
public InterReqStateMgmtMapImpl()
InterReqStateMgmtMapImpl
public InterReqStateMgmtMapImpl(int maxSize,
int pergeNumber)
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.
retrieveState
public org.sourceid.saml20.state.State retrieveState(java.lang.String stateKey)
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
setState
public void setState(org.sourceid.saml20.state.StateAccepter other)
- Specified by:
setState
in interface org.sourceid.saml20.state.StateAccepter
setState
public void setState(InterReqStateMgmtMapImpl other)
Copyright 2007 Ping Identity Corp. All rights reserved.