Package org.opensaml.profile.action.impl
Class PopulateClientTLSValidationParameters
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.impl.PopulateClientTLSValidationParameters
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction
Action that resolves and populates
ClientTLSValidationParameters on a
ClientTLSSecurityParametersContext created/accessed via a lookup function,
by default on the inbound message context.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to lookup a per-requestClientTLSValidationConfigurationlist.private final org.slf4j.LoggerClass logger.Resolver for parameters to store into context.Strategy used to look up theClientTLSSecurityParametersContextto set the parameters for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) Performs this action.protected voidvoidSet the resolver to use for the parameters to store into the context.voidsetConfigurationLookupStrategy(Function<ProfileRequestContext, List<ClientTLSValidationConfiguration>> strategy) Set the strategy used to look up a per-requestClientTLSValidationConfigurationlist.voidsetSecurityParametersContextLookupStrategy(Function<ProfileRequestContext, ClientTLSSecurityParametersContext> strategy) Set the strategy used to look up theClientTLSSecurityParametersContextto set the parameters for.Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, doPreExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
securityParametersContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,ClientTLSSecurityParametersContext> securityParametersContextLookupStrategyStrategy used to look up theClientTLSSecurityParametersContextto set the parameters for. -
configurationLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,List<ClientTLSValidationConfiguration>> configurationLookupStrategyStrategy used to lookup a per-requestClientTLSValidationConfigurationlist. -
resolver
Resolver for parameters to store into context.
-
-
Constructor Details
-
PopulateClientTLSValidationParameters
public PopulateClientTLSValidationParameters()Constructor.
-
-
Method Details
-
setSecurityParametersContextLookupStrategy
public void setSecurityParametersContextLookupStrategy(@Nonnull Function<ProfileRequestContext, ClientTLSSecurityParametersContext> strategy) Set the strategy used to look up theClientTLSSecurityParametersContextto 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-requestClientTLSValidationConfigurationlist.- 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
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
Performs this action. Actions must override this method to perform their work.- Overrides:
doExecutein classAbstractProfileAction- Parameters:
profileRequestContext- the current IdP profile request context
-