public class InitializeOutboundMessageContextForError extends AbstractProfileAction
MessageContext and related SAML contexts
in the event that they are not already prepared, to allow error responses to be
generated in the case of synchronous bindings (i.e., SOAP).
This is a "make-up" action that fills in missing information that may not have been populated in the course of normal processing, if an error occurs early in profile processing. It does nothing if an outbound message context already exists.
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MSG_CTXProfileRequestContext.getOutboundMessageContext() != null
| Modifier and Type | Field and Description |
|---|---|
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLBindingContext> |
bindingContextLookupStrategy
Strategy function for access to
SAMLBindingContext to populate. |
private org.slf4j.Logger |
log
Class logger.
|
private String |
outboundBinding
Outbound binding to use.
|
private org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext |
peerEntityCtx
The
SAMLPeerEntityContext to base the outbound context on, if any. |
private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> |
relyingPartyContextLookupStrategy
Relying party context lookup strategy.
|
| Constructor and Description |
|---|
InitializeOutboundMessageContextForError()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
void |
setBindingContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLBindingContext> strategy)
Set lookup strategy for
SAMLBindingContext to populate. |
void |
setOutboundBinding(String binding)
Set the outbound binding to use for the error response.
|
void |
setRelyingPartyContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> strategy)
Set the relying party context lookup strategy.
|
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, 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,org.opensaml.saml.common.messaging.context.SAMLBindingContext> bindingContextLookupStrategy
SAMLBindingContext to populate.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
@NonnullAfterInit private String outboundBinding
@Nullable private org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext peerEntityCtx
SAMLPeerEntityContext to base the outbound context on, if any.public InitializeOutboundMessageContextForError()
public void setBindingContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLBindingContext> strategy)
SAMLBindingContext to populate.strategy - lookup strategypublic void setRelyingPartyContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> strategy)
strategy - lookup strategypublic void setOutboundBinding(@Nonnull@NotEmpty String binding)
binding - binding identifierprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionprotected 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.