public class PopulateHttpClientSecurityParametersHandler extends AbstractMessageHandler
HttpClientSecurityParameters on a HttpClientSecurityContext
created/accessed via a lookup function, by default as an immediate child context of the target
MessageContext.| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Predicate<MessageContext> |
clientTLSPredicate
Predicate which determines whether clientTLS credentials should be included in the resolved parameters.
|
private com.google.common.base.Function<MessageContext,List<HttpClientSecurityConfiguration>> |
configurationLookupStrategy
Strategy used to look up a per-request
HttpClientSecurityConfiguration list. |
private com.google.common.base.Function<MessageContext,HttpClientSecurityContext> |
existingParametersContextLookupStrategy
Strategy used to look up an existing
HttpClientSecurityContext to copy. |
private Logger |
log
Class logger.
|
private HttpClientSecurityParametersResolver |
resolver
Resolver for parameters to store into context.
|
private com.google.common.base.Function<MessageContext,HttpClientSecurityContext> |
securityParametersContextLookupStrategy
Strategy used to look up the
HttpClientSecurityContext to set the parameters for. |
| Constructor and Description |
|---|
PopulateHttpClientSecurityParametersHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
protected void |
doInvoke(MessageContext messageContext) |
protected boolean |
doPreInvoke(MessageContext messageContext) |
protected void |
postProcessParams(MessageContext messageContext,
HttpClientSecurityParameters params)
Post-process the resolved parameters.
|
void |
setClientTLSPredicate(com.google.common.base.Predicate<MessageContext> predicate)
Set the predicate which determines whether clientTLS credentials should be included in the resolved parameters.
|
void |
setConfigurationLookupStrategy(com.google.common.base.Function<MessageContext,List<HttpClientSecurityConfiguration>> strategy)
Set the strategy used to look up a per-request
HttpClientSecurityConfiguration list. |
void |
setExistingParametersContextLookupStrategy(com.google.common.base.Function<MessageContext,HttpClientSecurityContext> strategy)
Set the strategy used to look up an existing
HttpClientSecurityContext to copy instead
of actually resolving the parameters to set. |
void |
setHttpClientSecurityParametersResolver(HttpClientSecurityParametersResolver newResolver)
Set the resolver to use for the parameters to store into the context.
|
void |
setSecurityParametersContextLookupStrategy(com.google.common.base.Function<MessageContext,HttpClientSecurityContext> strategy)
Set the strategy used to look up the
HttpClientSecurityContext to set the parameters for. |
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, initialize, isDestroyed, isInitialized@Nonnull private com.google.common.base.Function<MessageContext,HttpClientSecurityContext> securityParametersContextLookupStrategy
HttpClientSecurityContext to set the parameters for.@Nullable private com.google.common.base.Function<MessageContext,HttpClientSecurityContext> existingParametersContextLookupStrategy
HttpClientSecurityContext to copy.@NonnullAfterInit private com.google.common.base.Function<MessageContext,List<HttpClientSecurityConfiguration>> configurationLookupStrategy
HttpClientSecurityConfiguration list.@NonnullAfterInit private HttpClientSecurityParametersResolver resolver
@Nullable private com.google.common.base.Predicate<MessageContext> clientTLSPredicate
public PopulateHttpClientSecurityParametersHandler()
public void setClientTLSPredicate(@Nullable com.google.common.base.Predicate<MessageContext> predicate)
predicate - clientTLS predicatepublic void setSecurityParametersContextLookupStrategy(@Nonnull com.google.common.base.Function<MessageContext,HttpClientSecurityContext> strategy)
HttpClientSecurityContext to set the parameters for.strategy - lookup strategypublic void setExistingParametersContextLookupStrategy(@Nullable com.google.common.base.Function<MessageContext,HttpClientSecurityContext> strategy)
HttpClientSecurityContext to copy instead
of actually resolving the parameters to set.strategy - lookup strategypublic void setConfigurationLookupStrategy(@Nonnull com.google.common.base.Function<MessageContext,List<HttpClientSecurityConfiguration>> strategy)
HttpClientSecurityConfiguration list.strategy - lookup strategypublic void setHttpClientSecurityParametersResolver(@Nonnull HttpClientSecurityParametersResolver newResolver)
newResolver - resolver to useprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected boolean doPreInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException
doPreInvoke in class AbstractMessageHandlerMessageHandlerExceptionprotected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException
doInvoke in class AbstractMessageHandlerMessageHandlerExceptionprotected void postProcessParams(@Nonnull MessageContext messageContext, @Nonnull HttpClientSecurityParameters params)
messageContext - the current message contextparams - the parameters to processCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.