Class ProcessLogoutTokenRequest
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.sp.profile.AbstractAgentRequestAction
net.shibboleth.sp.profile.AbstractAgentAction
net.shibboleth.sp.profile.AbstractApplicationAction
net.shibboleth.sp.saml.saml2.profile.impl.ProcessLogoutTokenRequest
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Processes a request to potentially issue a SAML 2.0
LogoutResponse by examining the input
to recover the "token" issued by the logout-consumer flow in a previous call.
Assuming the token is present and sufficient, it creates a RelyingPartyContext
based on the identity of the original IdP that needs to receive the message and a
StateDataContext to store the state recovered from the token, principally the
original request's ID and RelayState value.
- Event:
EventIds.PROCEED_EVENT_ID,EventIds.INVALID_PROFILE_CTX,EventIds.INVALID_MESSAGE,EventIds.INVALID_MSG_CTX,EventIds.UNABLE_TO_DECODE,IdPEventIds.INVALID_RELYING_PARTY_CTX- Precondition:
profileRequestContext.ensureSubcontext(AgentRequestContext.class).getInput().getmember("token").string() != null- Postcondition:
profileRequestContext.getSubcontext(StateDataContext.class) != null
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.Creation strategy forRelyingPartyContext.private SAMLStateDataState data recovered from token.Creation strategy forStateDataContext.private StateManagerCustomStateManagerused to process the "token" parameter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidsetRelyingPartyContextCreationStrategy(Function<ProfileRequestContext, RelyingPartyContext> strategy) Set strategy to create theRelyingPartyContext.voidSet strategy to create theStateDataContext.voidsetStateManager(StateManager manager) Sets theStateManagerto parse token parameter with.Methods inherited from class net.shibboleth.sp.profile.AbstractApplicationAction
ensureApplication, getApplicationMethods inherited from class net.shibboleth.sp.profile.AbstractAgentAction
ensureAgent, getAgentMethods inherited from class net.shibboleth.sp.profile.AbstractAgentRequestAction
ensureAgentRequestContext, getAgentRequestContext, setAgentRequestContextLookupStrategyMethods 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, 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
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
stateManager
CustomStateManagerused to process the "token" parameter. -
stateDataContextCreationStrategy
Creation strategy forStateDataContext. -
relyingPartyContextCreationStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextCreationStrategyCreation strategy forRelyingPartyContext. -
stateData
State data recovered from token.
-
-
Constructor Details
-
ProcessLogoutTokenRequest
public ProcessLogoutTokenRequest()Constructor.
-
-
Method Details
-
setStateManager
Sets theStateManagerto parse token parameter with.- Parameters:
manager- state manager
-
setStateDataContextCreationStrategy
public void setStateDataContextCreationStrategy(@Nonnull Function<ProfileRequestContext, StateDataContext> strategy) Set strategy to create theStateDataContext.- Parameters:
strategy- creation strategy
-
setRelyingPartyContextCreationStrategy
public void setRelyingPartyContextCreationStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set strategy to create theRelyingPartyContext.- Parameters:
strategy- creation strategy
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractApplicationAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-