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 voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidsetAssumeAsynchronousLogout(boolean flag) Sets whether to treat logout requests as asynchronous (not requiring a response) if no metadata is available or lacks endpoints.voidSet the lookup strategy for theSAMLMetadataContext.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.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:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-