Class LogoutPropagationContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.session.context.LogoutPropagationContext
- All Implemented Interfaces:
Iterable<BaseContext>
Context holding information needed to perform logout for a single SP session.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Logout propagation result.Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Details of result, typically only populated for failures.private LogoutPropagationContext.Result
Result of logout propagation flow.private SPSession
SP session to be destroyed.private String
Session key. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet detailed message regarding result of logout propagation.Get the result of the logout propagation.Get theSPSession
being destroyed by the logout propagation.Gets the key under which theSPSession
was stored inLogoutContext.getKeyedSessionMap()
.void
Set the logout propagation result detail message.void
setResult
(LogoutPropagationContext.Result theResult) Set the logout propagation result.void
setResultString
(String resultString) Set the logout propagation result from a string representation ofLogoutPropagationContext.Result
.void
setSession
(SPSession theSession) Set theSPSession
to be destroyed.void
setSessionKey
(String key) Sets the key under which theSPSession
was stored inLogoutContext.getKeyedSessionMap()
.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
-
session
SP session to be destroyed. -
sessionKey
Session key. -
result
Result of logout propagation flow. -
detail
Details of result, typically only populated for failures.
-
-
Constructor Details
-
LogoutPropagationContext
public LogoutPropagationContext()
-
-
Method Details
-
getSession
Get theSPSession
being destroyed by the logout propagation.- Returns:
- the SP session to be destroyed
-
setSession
Set theSPSession
to be destroyed.- Parameters:
theSession
- the SP session
-
getSessionKey
Gets the key under which theSPSession
was stored inLogoutContext.getKeyedSessionMap()
.- Returns:
- Session key.
-
setSessionKey
Sets the key under which theSPSession
was stored inLogoutContext.getKeyedSessionMap()
.- Parameters:
key
- Session key.
-
getResult
Get the result of the logout propagation.- Returns:
- logout propagation result
-
setResult
Set the logout propagation result.- Parameters:
theResult
- non-null result
-
setResultString
Set the logout propagation result from a string representation ofLogoutPropagationContext.Result
.- Parameters:
resultString
- Non-null string representation ofLogoutPropagationContext.Result
.
-
getDetail
Get detailed message regarding result of logout propagation.- Returns:
- logout propagation result detail message
-
setDetail
Set the logout propagation result detail message.- Parameters:
msg
- result detail message.
-