Package org.opensaml.profile.action.impl
Class PopulateClientTLSValidationParameters
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.profile.action.impl.PopulateClientTLSValidationParameters
-
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,ProfileAction
public class PopulateClientTLSValidationParameters extends AbstractProfileAction
Action that resolves and populatesClientTLSValidationParameters
on aClientTLSSecurityParametersContext
created/accessed via a lookup function, by default on the inbound message context.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,List<ClientTLSValidationConfiguration>>
configurationLookupStrategy
Strategy used to lookup a per-requestClientTLSValidationConfiguration
list.private org.slf4j.Logger
log
Class logger.private ClientTLSValidationParametersResolver
resolver
Resolver for parameters to store into context.private Function<ProfileRequestContext,ClientTLSSecurityParametersContext>
securityParametersContextLookupStrategy
Strategy used to look up theClientTLSSecurityParametersContext
to set the parameters for.
-
Constructor Summary
Constructors Constructor Description PopulateClientTLSValidationParameters()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute(ProfileRequestContext profileRequestContext)
protected void
doInitialize()
void
setClientTLSValidationParametersResolver(ClientTLSValidationParametersResolver newResolver)
Set the resolver to use for the parameters to store into the context.void
setConfigurationLookupStrategy(Function<ProfileRequestContext,List<ClientTLSValidationConfiguration>> strategy)
Set the strategy used to look up a per-requestClientTLSValidationConfiguration
list.void
setSecurityParametersContextLookupStrategy(Function<ProfileRequestContext,ClientTLSSecurityParametersContext> strategy)
Set the strategy used to look up theClientTLSSecurityParametersContext
to set the parameters for.-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, doPreExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
securityParametersContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,ClientTLSSecurityParametersContext> securityParametersContextLookupStrategy
Strategy used to look up theClientTLSSecurityParametersContext
to set the parameters for.
-
configurationLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,List<ClientTLSValidationConfiguration>> configurationLookupStrategy
Strategy used to lookup a per-requestClientTLSValidationConfiguration
list.
-
resolver
@NonnullAfterInit private ClientTLSValidationParametersResolver resolver
Resolver for parameters to store into context.
-
-
Method Detail
-
setSecurityParametersContextLookupStrategy
public void setSecurityParametersContextLookupStrategy(@Nonnull Function<ProfileRequestContext,ClientTLSSecurityParametersContext> strategy)
Set the strategy used to look up theClientTLSSecurityParametersContext
to set the parameters for.- Parameters:
strategy
- lookup strategy
-
setConfigurationLookupStrategy
public void setConfigurationLookupStrategy(@Nonnull Function<ProfileRequestContext,List<ClientTLSValidationConfiguration>> strategy)
Set the strategy used to look up a per-requestClientTLSValidationConfiguration
list.- Parameters:
strategy
- lookup strategy
-
setClientTLSValidationParametersResolver
public void setClientTLSValidationParametersResolver(@Nonnull ClientTLSValidationParametersResolver newResolver)
Set the resolver to use for the parameters to store into the context.- Parameters:
newResolver
- resolver to use
-
doInitialize
protected void doInitialize() throws ComponentInitializationException
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
- Overrides:
doExecute
in classAbstractProfileAction
-
-