public class InitializeOutboundMessageContext extends AbstractProfileAction
MessageContext and related SAML 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 IdP, as derived by a lookup strategy. A
SAMLPeerEntityContext and SAMLMetadataContext are created based on the SAMLPeerEntityContext
that underlies the RelyingPartyContext.
EventIds.PROCEED_EVENT_ID, IdPEventIds.INVALID_RELYING_PARTY_CTX| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext |
peerEntityCtx
The
SAMLPeerEntityContext to base the outbound context on. |
private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> |
relyingPartyContextLookupStrategy
Relying party context lookup strategy.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,String> |
selfIdentityLookupStrategy
Strategy used to obtain the self identity value.
|
| Constructor and Description |
|---|
InitializeOutboundMessageContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
void |
setRelyingPartyContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> strategy)
Set the relying party context lookup strategy.
|
void |
setSelfIdentityLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to locate the self identity value to use.
|
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,String> selfIdentityLookupStrategy
@Nullable private org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext peerEntityCtx
SAMLPeerEntityContext to base the outbound context on.public InitializeOutboundMessageContext()
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> strategy)
strategy - lookup strategypublic void setSelfIdentityLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
strategy - lookup strategyprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractConditionalProfileActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.