|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceid.saml20.service.impl.localmemory.IdpSessionRegistryMapImpl
public class IdpSessionRegistryMapImpl
A HashMap backed implementation of the IdpSessionRegistry.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,IdpHashableAuthnBean> |
assertionIdToBeanMap
|
protected java.util.Map<IdpHashableAuthnBean,java.lang.String> |
beanToSessionIdMap
|
protected java.util.Map<IdpHashableAuthnBean,java.util.List<Session>> |
beanToSessionListMap
|
protected java.util.Map<java.lang.String,java.util.Set<IdpHashableAuthnBean>> |
sessionIdToBeansSetMap
|
Constructor Summary | |
---|---|
IdpSessionRegistryMapImpl()
|
Method Summary | |
---|---|
IdpHashableAuthnBean |
getAuthnBean(java.lang.String assertionId)
Lookup the HashableAuthnBean that was registered against a remote session with the given asseriton id. |
java.util.List<Session> |
getIssuedSessions(IdpHashableAuthnBean authnBean)
Gets all the sessions that have been issued to SP partners that are currently registered against the given HashableAuthnBean. |
java.util.Set<IdpHashableAuthnBean> |
getRegisteredAuthnBeans(java.lang.String sessionIdentifier)
Looks up all the local application sessions (HashableAuthnBeans) associated with a given PingFederate session id. |
Session |
getSession(java.lang.String assertionId)
|
void |
registerSessionIssued(IdpHashableAuthnBean authnBean,
Session session)
Registers that a remote session was issued against a local application session represented by the HashableAuthnBean. |
void |
setState(IdpSessionRegistryMapImpl fromother)
|
void |
setState(org.sourceid.saml20.state.StateAccepter other)
|
void |
unregisterAuthnBean(IdpHashableAuthnBean authnBean)
Unregister an authentication bean. |
Session |
unregisterSession(java.lang.String assertionId)
Unregister and return a session by assertion id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<IdpHashableAuthnBean,java.util.List<Session>> beanToSessionListMap
protected java.util.Map<java.lang.String,IdpHashableAuthnBean> assertionIdToBeanMap
protected java.util.Map<java.lang.String,java.util.Set<IdpHashableAuthnBean>> sessionIdToBeansSetMap
protected java.util.Map<IdpHashableAuthnBean,java.lang.String> beanToSessionIdMap
Constructor Detail |
---|
public IdpSessionRegistryMapImpl()
Method Detail |
---|
public java.util.Set<IdpHashableAuthnBean> getRegisteredAuthnBeans(java.lang.String sessionIdentifier)
IdpSessionRegistry
getRegisteredAuthnBeans
in interface IdpSessionRegistry
sessionIdentifier
- the PingFederate session identifier. See:
IdpHashableAuthnBean.getPingFederateSessionId()
.
public void unregisterAuthnBean(IdpHashableAuthnBean authnBean)
IdpSessionRegistry
unregisterAuthnBean
in interface IdpSessionRegistry
authnBean
- the local session.public void registerSessionIssued(IdpHashableAuthnBean authnBean, Session session)
IdpSessionRegistry
Registers that a remote session was issued against a local application session represented by the
HashableAuthnBean. The HashableAuthnBean also contains a reference to the PingFederate local session
identifier IdpHashableAuthnBean.getPingFederateSessionId()
.
Note that the assertion id and the session index on the Session object will always be the same in this context because of the way PingFederate handles session indexes.
registerSessionIssued
in interface IdpSessionRegistry
authnBean
- the local application session (which contains a local session identifier).session
- the remote session.public java.util.List<Session> getIssuedSessions(IdpHashableAuthnBean authnBean)
IdpSessionRegistry
getIssuedSessions
in interface IdpSessionRegistry
authnBean
- the local application session
public Session getSession(java.lang.String assertionId)
public Session unregisterSession(java.lang.String assertionId)
IdpSessionRegistry
Session.getAssertionId()
and
IdpHashableAuthnBean.getPingFederateSessionId()
.
unregisterSession
in interface IdpSessionRegistry
assertionId
- the assertion id.
public IdpHashableAuthnBean getAuthnBean(java.lang.String assertionId)
IdpSessionRegistry
getAuthnBean
in interface IdpSessionRegistry
assertionId
- the unique identifier of the assertion that was issued to an SP partner connection to
create a remote session.
public void setState(org.sourceid.saml20.state.StateAccepter other)
setState
in interface org.sourceid.saml20.state.StateAccepter
public void setState(IdpSessionRegistryMapImpl fromother)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |