Class PopulateSignatureSigningParameters
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
org.opensaml.profile.action.AbstractHandlerDelegatingProfileAction<PopulateSignatureSigningParametersHandler>
org.opensaml.saml.common.profile.impl.PopulateSignatureSigningParameters
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction
public class PopulateSignatureSigningParameters
extends AbstractHandlerDelegatingProfileAction<PopulateSignatureSigningParametersHandler>
Action that resolves and populates
SignatureSigningParameters on a SecurityParametersContext
created/accessed via a lookup function, by default on the outbound message context.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to look up a per-requestSignatureSigningConfigurationlist.Strategy used to look up an existingSecurityParametersContextto copy.private final org.slf4j.LoggerClass logger.Strategy used to look up a SAML metadata context.private booleanWhether failure to resolve parameters should be raised as an error.Resolver for parameters to store into context.Strategy used to look up theSecurityParametersContextto set the parameters for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidsetConfigurationLookupStrategy(Function<ProfileRequestContext, List<SignatureSigningConfiguration>> strategy) Set the strategy used to look up a per-requestSignatureSigningConfigurationlist.voidsetExistingParametersContextLookupStrategy(Function<ProfileRequestContext, SecurityParametersContext> strategy) Set the strategy used to look up an existingSecurityParametersContextto copy instead of actually resolving the parameters to set.voidSet lookup strategy forSAMLMetadataContextfor input to resolution.voidsetNoResultIsError(boolean flag) Set whether a failure to resolve any parameters should be raised as an exception.voidsetSecurityParametersContextLookupStrategy(Function<ProfileRequestContext, SecurityParametersContext> strategy) Set the strategy used to look up theSecurityParametersContextto set the parameters for.voidSet the resolver to use for the parameters to store into the context.Methods inherited from class org.opensaml.profile.action.AbstractHandlerDelegatingProfileAction
adapt, adapt, adaptRequired, doDestroy, doExecute, getDelegate, setErrorEventMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, 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,SecurityParametersContext> securityParametersContextLookupStrategyStrategy used to look up theSecurityParametersContextto set the parameters for. -
existingParametersContextLookupStrategy
@Nullable private Function<ProfileRequestContext,SecurityParametersContext> existingParametersContextLookupStrategyStrategy used to look up an existingSecurityParametersContextto copy. -
configurationLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,List<SignatureSigningConfiguration>> configurationLookupStrategyStrategy used to look up a per-requestSignatureSigningConfigurationlist. -
metadataContextLookupStrategy
Strategy used to look up a SAML metadata context. -
resolver
Resolver for parameters to store into context. -
noResultIsError
private boolean noResultIsErrorWhether failure to resolve parameters should be raised as an error.
-
-
Constructor Details
-
PopulateSignatureSigningParameters
public PopulateSignatureSigningParameters()Constructor.
-
-
Method Details
-
setSecurityParametersContextLookupStrategy
public void setSecurityParametersContextLookupStrategy(@Nonnull Function<ProfileRequestContext, SecurityParametersContext> strategy) Set the strategy used to look up theSecurityParametersContextto set the parameters for.- Parameters:
strategy- lookup strategy
-
setExistingParametersContextLookupStrategy
public void setExistingParametersContextLookupStrategy(@Nullable Function<ProfileRequestContext, SecurityParametersContext> strategy) Set the strategy used to look up an existingSecurityParametersContextto copy instead of actually resolving the parameters to set.- Parameters:
strategy- lookup strategy
-
setMetadataContextLookupStrategy
public void setMetadataContextLookupStrategy(@Nullable Function<ProfileRequestContext, SAMLMetadataContext> strategy) Set lookup strategy forSAMLMetadataContextfor input to resolution.- Parameters:
strategy- lookup strategy
-
setConfigurationLookupStrategy
public void setConfigurationLookupStrategy(@Nonnull Function<ProfileRequestContext, List<SignatureSigningConfiguration>> strategy) Set the strategy used to look up a per-requestSignatureSigningConfigurationlist.- Parameters:
strategy- lookup strategy
-
setSignatureSigningParametersResolver
public void setSignatureSigningParametersResolver(@Nonnull SignatureSigningParametersResolver newResolver) Set the resolver to use for the parameters to store into the context.- Parameters:
newResolver- resolver to use
-
setNoResultIsError
public void setNoResultIsError(boolean flag) Set whether a failure to resolve any parameters should be raised as an exception.Defaults to false.
- Parameters:
flag- flag to set- Since:
- 3.4.0
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-