public class AddChannelBindingsToAssertions extends AbstractConditionalProfileAction
ChannelBindings extension(s) to every Assertion in a Response message.
If the containing Advice is not present, it will be created.
The ChannelBindingsContext to read from is located via lookup strategy, by default beneath the
outbound message context.
| Modifier and Type | Field and Description |
|---|---|
private ChannelBindingsContext |
channelBindingsContext
ChannelBindingsContext to read from.
|
private com.google.common.base.Function<ProfileRequestContext,ChannelBindingsContext> |
channelBindingsContextLookupStrategy
Strategy used to locate the
ChannelBindingsContext to operate on. |
private org.slf4j.Logger |
log
Class logger.
|
private Response |
response
Response to modify.
|
private com.google.common.base.Function<ProfileRequestContext,Response> |
responseLookupStrategy
Strategy used to locate the
Response to operate on. |
| Constructor and Description |
|---|
AddChannelBindingsToAssertions()
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 |
setChannelBindingsContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,ChannelBindingsContext> strategy)
Set the strategy used to locate the
ChannelBindingsContext to operate on. |
void |
setResponseLookupStrategy(com.google.common.base.Function<ProfileRequestContext,Response> strategy)
Set the strategy used to locate the
Response 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,ChannelBindingsContext> channelBindingsContextLookupStrategy
ChannelBindingsContext to operate on.@Nonnull private com.google.common.base.Function<ProfileRequestContext,Response> responseLookupStrategy
Response to operate on.@Nullable private ChannelBindingsContext channelBindingsContext
@Nullable private Response response
public AddChannelBindingsToAssertions()
public void setChannelBindingsContextLookupStrategy(@Nonnull
com.google.common.base.Function<ProfileRequestContext,ChannelBindingsContext> strategy)
ChannelBindingsContext to operate on.strategy - lookup strategypublic void setResponseLookupStrategy(@Nonnull
com.google.common.base.Function<ProfileRequestContext,Response> strategy)
Response to operate on.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