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) |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
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, setActivationCondition
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
destroy, 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
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)
doPreExecute
in class AbstractConditionalProfileAction
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute
in class AbstractProfileAction
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.