public class AddInResponseToToResponse extends AbstractConditionalProfileAction
InResponseTo
attribute to a response message if a SAML message ID is set on
the inbound message context.
Supports all of the abstract types in SAML that carry this attribute.
Modifier and Type | Class and Description |
---|---|
static class |
AddInResponseToToResponse.DefaultRequestIdLookupStrategy
Default lookup of request ID from inbound message context, suppressing lookup for bindings
known to be supplying artificial IDs.
|
Constructor and Description |
---|
AddInResponseToToResponse()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext)
Performs this action.
|
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext)
Called prior to execution, actions may override this method to perform pre-processing for a request.
|
void |
setRequestIdLookupStrategy(com.google.common.base.Function<ProfileRequestContext,String> strategy)
Set the strategy used to locate the request ID.
|
void |
setResponseLookupStrategy(com.google.common.base.Function<ProfileRequestContext,SAMLObject> strategy)
Set the strategy used to locate the message to operate on.
|
getActivationCondition, setActivationCondition
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
public void setResponseLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,SAMLObject> strategy)
strategy
- strategy used to locate the message to operate onpublic void setRequestIdLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,String> strategy)
strategy
- lookup strategyprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
If false is returned, execution will not proceed, and the action should attach an
EventContext
to the context tree to signal how to continue with overall
workflow processing.
If returning successfully, the last step should be to return the result of the superclass version of this method.
doPreExecute
in class AbstractConditionalProfileAction
profileRequestContext
- the current IdP profile request contextprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute
in class AbstractProfileAction
profileRequestContext
- the current IdP profile request contextCopyright © 2018. All rights reserved.