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 com.google.common.base.Function<ProfileRequestContext,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 SAMLPeerEntityContext |
peerEntityCtx
The
SAMLPeerEntityContext to base the outbound context on, if any. |
private com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> |
relyingPartyContextLookupStrategy
Relying party context lookup strategy.
|
| Constructor and Description |
|---|
InitializeOutboundMessageContextForError()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
void |
setBindingContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,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(com.google.common.base.Function<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 com.google.common.base.Function<ProfileRequestContext,SAMLBindingContext> bindingContextLookupStrategy
SAMLBindingContext to populate.@Nonnull private com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
@NonnullAfterInit private String outboundBinding
@Nullable private SAMLPeerEntityContext peerEntityCtx
SAMLPeerEntityContext to base the outbound context on, if any.public InitializeOutboundMessageContextForError()
public void setBindingContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,SAMLBindingContext> strategy)
SAMLBindingContext to populate.strategy - lookup strategypublic void setRelyingPartyContextLookupStrategy(@Nonnull com.google.common.base.Function<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 ProfileRequestContext profileRequestContext)
doPreExecute in class AbstractConditionalProfileActionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.