Package org.opensaml.profile.action.impl
Class PopulateDecryptionParameters
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
org.opensaml.profile.action.impl.PopulateDecryptionParameters
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,ProfileAction
Action that resolves and populates
DecryptionParameters
on a SecurityParametersContext
created/accessed via a lookup function, by default on the inbound message context.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to lookup a per-requestDecryptionConfiguration
list.private final org.slf4j.Logger
Class logger.private DecryptionParametersResolver
Resolver for parameters to store into context.Strategy used to look up theSecurityParametersContext
to set the parameters for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(ProfileRequestContext profileRequestContext) Performs this action.protected void
void
setConfigurationLookupStrategy
(Function<ProfileRequestContext, List<DecryptionConfiguration>> strategy) Set the strategy used to look up a per-requestDecryptionConfiguration
list.void
Set the resolver to use for the parameters to store into the context.void
setSecurityParametersContextLookupStrategy
(Function<ProfileRequestContext, SecurityParametersContext> strategy) Set the strategy used to look up theSecurityParametersContext
to set the parameters for.Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
doPreExecute, getActivationCondition, setActivationCondition
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, 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 Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
securityParametersContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,SecurityParametersContext> securityParametersContextLookupStrategyStrategy used to look up theSecurityParametersContext
to set the parameters for. -
configurationLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,List<DecryptionConfiguration>> configurationLookupStrategyStrategy used to lookup a per-requestDecryptionConfiguration
list. -
resolver
Resolver for parameters to store into context.
-
-
Constructor Details
-
PopulateDecryptionParameters
public PopulateDecryptionParameters()Constructor.
-
-
Method Details
-
setSecurityParametersContextLookupStrategy
public void setSecurityParametersContextLookupStrategy(@Nonnull Function<ProfileRequestContext, SecurityParametersContext> strategy) Set the strategy used to look up theSecurityParametersContext
to set the parameters for.- Parameters:
strategy
- lookup strategy
-
setConfigurationLookupStrategy
public void setConfigurationLookupStrategy(@Nonnull Function<ProfileRequestContext, List<DecryptionConfiguration>> strategy) Set the strategy used to look up a per-requestDecryptionConfiguration
list.- Parameters:
strategy
- lookup strategy
-
setDecryptionParametersResolver
Set the resolver to use for the parameters to store into the context.- Parameters:
newResolver
- resolver to use
-
doInitialize
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-
doExecute
Performs this action. Actions must override this method to perform their work.- Overrides:
doExecute
in classAbstractProfileAction
- Parameters:
profileRequestContext
- the current IdP profile request context
-