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.
|
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private java.lang.String |
requestId
Request ID to populate from.
|
private com.google.common.base.Function<ProfileRequestContext,java.lang.String> |
requestIdLookupStrategy
Strategy used to locate request ID to correlate.
|
private SAMLObject |
response
Message to modify.
|
private com.google.common.base.Function<ProfileRequestContext,SAMLObject> |
responseLookupStrategy
Strategy used to locate the message to operate on.
|
| 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,java.lang.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, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<ProfileRequestContext,SAMLObject> responseLookupStrategy
@Nonnull private com.google.common.base.Function<ProfileRequestContext,java.lang.String> requestIdLookupStrategy
@Nullable private SAMLObject response
@Nullable private java.lang.String requestId
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,java.lang.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 AbstractConditionalProfileActionprofileRequestContext - the current IdP profile request contextprotected void doExecute(@Nonnull
ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionprofileRequestContext - the current IdP profile request context