Class PreProcessLogoutMessage
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,ProfileAction
,Aware
,MessageSource
,MessageSourceAware
,Action
LogoutRequest
or LogoutResponse
to
dispatch it for subsequent processing.
This action is essentially three decision states in one, using some custom events.
If the inbound message is a LogoutResponse
then the event "IsLogoutResponse" is signaled.
If the inbound message is a LogoutRequest
, then one of two events is signaled. If the request
contains the Asynchronous
extension, then the "IsLogoutRequestAsync" event is signaled. This also
occurs, provided a particular option is enabled, if the request does not contain the extension but there
is no SAML metadata available for the requester or the metadata contains no SingleLogoutService
endpoints.
Finally, EventIds.PROCEED_EVENT_ID
is the result if neither of the above applies.
Various standard events may occur if the message is missing or isn't an appropriate type.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(ProfileRequestContext profileRequestContext) protected boolean
doPreExecute
(ProfileRequestContext profileRequestContext) void
setAssumeAsynchronousLogout
(boolean flag) Sets whether to treat logout requests as asynchronous (not requiring a response) if no metadata is available or lacks endpoints.void
Set the lookup strategy for theSAMLMetadataContext
.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
IS_LOGOUT_RESPONSE
Event to signal for a logout response.- See Also:
-
IS_LOGOUT_REQUEST_ASYNC
Event to signal for a logout response.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
assumeAsync
private boolean assumeAsyncAssume asynchronous in absence of metadata. -
metadataContextLookupStrategy
Lookup strategy for metadata context.
-
-
Constructor Details
-
PreProcessLogoutMessage
public PreProcessLogoutMessage()Constructor.
-
-
Method Details
-
setAssumeAsynchronousLogout
public void setAssumeAsynchronousLogout(boolean flag) Sets whether to treat logout requests as asynchronous (not requiring a response) if no metadata is available or lacks endpoints.Defaults to false.
- Parameters:
flag
- what to set
-
setMetadataContextLookupStrategy
public void setMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext, SAMLMetadataContext> strategy) Set the lookup strategy for theSAMLMetadataContext
.- Parameters:
strategy
- lookup strategy
-
doPreExecute
- Overrides:
doPreExecute
in classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecute
in classAbstractProfileAction
-