public class PopulateSignatureSigningParameters extends AbstractConditionalProfileAction
SignatureSigningParameters
on a SecurityParametersContext
created/accessed via a lookup function, by default on the outbound message context.Modifier and Type | Field and Description |
---|---|
private com.google.common.base.Function<ProfileRequestContext,List<org.opensaml.xmlsec.SignatureSigningConfiguration>> |
configurationLookupStrategy
Strategy used to look up a per-request
SignatureSigningConfiguration list. |
private com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> |
existingParametersContextLookupStrategy
Strategy used to look up an existing
SecurityParametersContext to copy. |
private org.slf4j.Logger |
log
Class logger.
|
private com.google.common.base.Function<ProfileRequestContext,SAMLMetadataContext> |
metadataContextLookupStrategy
Strategy used to look up a SAML metadata context.
|
private org.opensaml.xmlsec.SignatureSigningParametersResolver |
resolver
Resolver for parameters to store into context.
|
private com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> |
securityParametersContextLookupStrategy
Strategy used to look up the
SecurityParametersContext to set the parameters for. |
Constructor and Description |
---|
PopulateSignatureSigningParameters()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
void |
setConfigurationLookupStrategy(com.google.common.base.Function<ProfileRequestContext,List<org.opensaml.xmlsec.SignatureSigningConfiguration>> strategy)
Set the strategy used to look up a per-request
SignatureSigningConfiguration list. |
void |
setExistingParametersContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> strategy)
Set the strategy used to look up an existing
SecurityParametersContext to copy instead
of actually resolving the parameters to set. |
void |
setMetadataContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,SAMLMetadataContext> strategy)
Set lookup strategy for
SAMLMetadataContext for input to resolution. |
void |
setSecurityParametersContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> strategy)
Set the strategy used to look up the
SecurityParametersContext to set the parameters for. |
void |
setSignatureSigningParametersResolver(org.opensaml.xmlsec.SignatureSigningParametersResolver newResolver)
Set the resolver to use for the parameters to store into the context.
|
getActivationCondition, setActivationCondition
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
destroy, doDestroy, initialize, isDestroyed, isInitialized
@Nonnull private final org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> securityParametersContextLookupStrategy
SecurityParametersContext
to set the parameters for.@Nullable private com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> existingParametersContextLookupStrategy
SecurityParametersContext
to copy.@NonnullAfterInit private com.google.common.base.Function<ProfileRequestContext,List<org.opensaml.xmlsec.SignatureSigningConfiguration>> configurationLookupStrategy
SignatureSigningConfiguration
list.@Nullable private com.google.common.base.Function<ProfileRequestContext,SAMLMetadataContext> metadataContextLookupStrategy
@NonnullAfterInit private org.opensaml.xmlsec.SignatureSigningParametersResolver resolver
public PopulateSignatureSigningParameters()
public void setSecurityParametersContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> strategy)
SecurityParametersContext
to set the parameters for.strategy
- lookup strategypublic void setExistingParametersContextLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> strategy)
SecurityParametersContext
to copy instead
of actually resolving the parameters to set.strategy
- lookup strategypublic void setMetadataContextLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,SAMLMetadataContext> strategy)
SAMLMetadataContext
for input to resolution.strategy
- lookup strategypublic void setConfigurationLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,List<org.opensaml.xmlsec.SignatureSigningConfiguration>> strategy)
SignatureSigningConfiguration
list.strategy
- lookup strategypublic void setSignatureSigningParametersResolver(@Nonnull org.opensaml.xmlsec.SignatureSigningParametersResolver newResolver)
newResolver
- resolver to useprotected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize
in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
doPreExecute
in class AbstractConditionalProfileAction
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute
in class AbstractProfileAction
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.