public final class LogoutContext extends BaseContext
BaseContext that holds a multimap of SPSession objects.
This context is used primarily to expose the SPSession objects for which logout is implicated.
It also tracks the processing of actions that populate a
net.shibboleth.idp.profile.context.MultiRelyingPartyContext tree containing
detailed information on each relying party, typically for user interface considerations.
BaseContext.ContextSetNoRemoveIteratorDecorator| Modifier and Type | Field and Description |
|---|---|
private Map<String,SPSession> |
keyedSessionMap
An index of the session objects by an externally assigned key.
|
private com.google.common.collect.Multimap<String,SPSession> |
sessionMap
SP sessions needing logout.
|
| Constructor and Description |
|---|
LogoutContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,SPSession> |
getKeyedSessionMap()
Get a live view of the map of sessions keyed by an external value.
|
com.google.common.collect.Multimap<String,SPSession> |
getSessionMap()
Get a live view of the map of service ID/session mappings.
|
Collection<SPSession> |
getSessions(String id)
Get a live collection of sessions associated with a service.
|
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nonnull @NonnullElements private final com.google.common.collect.Multimap<String,SPSession> sessionMap
@Nonnull @NonnullElements private final Map<String,SPSession> keyedSessionMap
@Nonnull @NonnullElements @Live public com.google.common.collect.Multimap<String,SPSession> getSessionMap()
@Nonnull @NonnullElements @Live public Map<String,SPSession> getKeyedSessionMap()
This map can be used to index the sessions in the context according to a particular use case.
@Nonnull @NonnullElements @Live public Collection<SPSession> getSessions(@Nonnull@NotEmpty String id)
id - name of service to retrieveCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.