Class LogoutContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.session.context.LogoutContext
- All Implemented Interfaces:
Iterable<BaseContext>
A
BaseContext
that holds a multimap of SPSession
objects.
This context is used primarily to expose the SPSession
objects for which logout is implicated.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<IdPSession>
Primary sessions to destroy.An index of the session objects by an externally assigned key.SP sessions needing logout. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a live collection of the IdP Sessions being destroyed.Get a live view of the map of sessions keyed by an external value.Get a live view of the map of service ID/session mappings.getSessions
(String id) Get a live collection of sessions associated with a service.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
idpSessions
Primary sessions to destroy. -
sessionMap
SP sessions needing logout. -
keyedSessionMap
An index of the session objects by an externally assigned key.
-
-
Constructor Details
-
LogoutContext
public LogoutContext()Constructor.
-
-
Method Details
-
getIdPSessions
Get a live collection of the IdP Sessions being destroyed.- Returns:
- sessions being destroyed
- Since:
- 4.0.0
-
getSessionMap
Get a live view of the map of service ID/session mappings.- Returns:
- service ID/session mappings
-
getKeyedSessionMap
Get a live view of the map of sessions keyed by an external value.This map can be used to index the sessions in the context according to a particular use case.
- Returns:
- keyed session mappings
-
getSessions
@Nonnull @NonnullElements @Live public Collection<SPSession> getSessions(@Nonnull @NotEmpty String id) Get a live collection of sessions associated with a service.- Parameters:
id
- name of service to retrieve- Returns:
- the sessions for the service
-