Class PrepareInboundMessageContext
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.profile.action.AbstractConditionalProfileAction
-
- net.shibboleth.idp.profile.AbstractProfileAction
-
- net.shibboleth.idp.saml.session.impl.PrepareInboundMessageContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class PrepareInboundMessageContext extends AbstractProfileAction
Action that adds an inboundMessageContextand aSAMLPeerEntityContextto theProfileRequestContextbased on the identity of a relying party, by default from aSAML2SPSessionfound in aLogoutPropagationContext.This action primarily mocks up a minimal amount of machinery on the inbound message side to drive a SAML 2 Logout Propagation flow, which needs to issue a logout request message for the
SAML2SPSessionit's given.It has some generic capability to allow it to be used for some other outbound messaging cases, such as SAML 2 SSO proxying.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,LogoutPropagationContext>logoutPropContextLookupStrategyLogout propagation context lookup strategy.private StringrelyingPartyIdThe relying party name to base the inbound context on.private Function<ProfileRequestContext,String>relyingPartyLookupStrategyOptional circumvention of usual method to identify the relying party name.
-
Constructor Summary
Constructors Constructor Description PrepareInboundMessageContext()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetLogoutPropagationContextLookupStrategy(Function<ProfileRequestContext,LogoutPropagationContext> strategy)Set the logout propagation context lookup strategy.voidsetRelyingPartyLookupStrategy(Function<ProfileRequestContext,String> strategy)Set an optional lookup strategy to identify the relying party name, as a substitute for the session/logout assumptions made by the action otherwise.-
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 Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
logoutPropContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,LogoutPropagationContext> logoutPropContextLookupStrategy
Logout propagation context lookup strategy.
-
relyingPartyLookupStrategy
@Nullable private Function<ProfileRequestContext,String> relyingPartyLookupStrategy
Optional circumvention of usual method to identify the relying party name.
-
relyingPartyId
@Nullable private String relyingPartyId
The relying party name to base the inbound context on.
-
-
Method Detail
-
setLogoutPropagationContextLookupStrategy
public void setLogoutPropagationContextLookupStrategy(@Nonnull Function<ProfileRequestContext,LogoutPropagationContext> strategy)Set the logout propagation context lookup strategy.- Parameters:
strategy- lookup strategy
-
setRelyingPartyLookupStrategy
public void setRelyingPartyLookupStrategy(@Nullable Function<ProfileRequestContext,String> strategy)Set an optional lookup strategy to identify the relying party name, as a substitute for the session/logout assumptions made by the action otherwise.- Parameters:
strategy- lookup strategy- Since:
- 4.0.0
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-