Class InitializeOutboundMessageContext
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.idp.saml.profile.impl.InitializeOutboundMessageContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Action that adds an outbound
MessageContext and SAML entity contexts to the ProfileRequestContext
based on the identity of a relying party accessed via a lookup strategy, by default an immediate child of the profile
request context.
A SAMLSelfEntityContext is created based on the identity of the peer, as derived by a lookup strategy. A
SAMLPeerEntityContext and SAMLMetadataContext are created based on the SAMLPeerEntityContext
that underlies the RelyingPartyContext.
The requirement for a peer context may be relaxed with a flag.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private SAMLPeerEntityContextTheSAMLPeerEntityContextto base the outbound context on.Relying party context lookup strategy.private booleanFlag controlling behavior if aSAMLPeerEntityContextis absent.private Function<ProfileRequestContext,String> Strategy used to obtain the self identity value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the relying party context lookup strategy.voidsetRequirePeerContext(boolean flag) Sets whether to require the existence of aSAMLPeerEntityContext.voidSet the strategy used to locate the self identity value to use.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
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyRelying party context lookup strategy. -
selfIdentityLookupStrategy
Strategy used to obtain the self identity value. -
requirePeerContext
private boolean requirePeerContextFlag controlling behavior if aSAMLPeerEntityContextis absent. -
peerEntityCtx
TheSAMLPeerEntityContextto base the outbound context on.
-
-
Constructor Details
-
InitializeOutboundMessageContext
public InitializeOutboundMessageContext()Constructor.
-
-
Method Details
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the relying party context lookup strategy.- Parameters:
strategy- lookup strategy
-
setSelfIdentityLookupStrategy
Set the strategy used to locate the self identity value to use.- Parameters:
strategy- lookup strategy
-
setRequirePeerContext
public void setRequirePeerContext(boolean flag) Sets whether to require the existence of aSAMLPeerEntityContext.Defaults to true.
- Parameters:
flag- flag to set- Since:
- 5.3.0
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-