public class PopulateSignatureSigningParametersHandler
extends org.opensaml.messaging.handler.AbstractMessageHandler
SignatureSigningParameters on a SecurityParametersContext
created/accessed via a lookup function, by default as an immediate child context of the target
MessageContext.| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.SignatureSigningConfiguration>> |
configurationLookupStrategy
Strategy used to look up a per-request
SignatureSigningConfiguration list. |
private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> |
existingParametersContextLookupStrategy
Strategy used to look up an existing
SecurityParametersContext to copy. |
private Logger |
log
Class logger.
|
private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> |
metadataContextLookupStrategy
Strategy used to look up a SAML metadata context.
|
private boolean |
noResultIsError
Whether failure to resolve parameters should be raised as an error.
|
private org.opensaml.xmlsec.SignatureSigningParametersResolver |
resolver
Resolver for parameters to store into context.
|
private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> |
securityParametersContextLookupStrategy
Strategy used to look up the
SecurityParametersContext to set the parameters for. |
| Constructor and Description |
|---|
PopulateSignatureSigningParametersHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
protected boolean |
doPreInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
void |
setConfigurationLookupStrategy(com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,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<org.opensaml.messaging.context.MessageContext,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<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> strategy)
Set lookup strategy for
SAMLMetadataContext for input to resolution. |
void |
setNoResultIsError(boolean flag)
Set whether a failure to resolve any parameters should be raised as an exception.
|
void |
setSecurityParametersContextLookupStrategy(com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,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.
|
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, initialize, isDestroyed, isInitialized@Nonnull private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> securityParametersContextLookupStrategy
SecurityParametersContext to set the parameters for.@Nullable private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> existingParametersContextLookupStrategy
SecurityParametersContext to copy.@NonnullAfterInit private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.SignatureSigningConfiguration>> configurationLookupStrategy
SignatureSigningConfiguration list.@Nullable private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> metadataContextLookupStrategy
@NonnullAfterInit private org.opensaml.xmlsec.SignatureSigningParametersResolver resolver
private boolean noResultIsError
public PopulateSignatureSigningParametersHandler()
public void setSecurityParametersContextLookupStrategy(@Nonnull com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,org.opensaml.xmlsec.context.SecurityParametersContext> strategy)
SecurityParametersContext to set the parameters for.strategy - lookup strategypublic void setExistingParametersContextLookupStrategy(@Nullable com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,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<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> strategy)
SAMLMetadataContext for input to resolution.strategy - lookup strategypublic void setConfigurationLookupStrategy(@Nonnull com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,List<org.opensaml.xmlsec.SignatureSigningConfiguration>> strategy)
SignatureSigningConfiguration list.strategy - lookup strategypublic void setSignatureSigningParametersResolver(@Nonnull org.opensaml.xmlsec.SignatureSigningParametersResolver newResolver)
newResolver - resolver to usepublic void setNoResultIsError(boolean flag)
Defaults to false.
flag - flag to setprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected boolean doPreInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doPreInvoke in class org.opensaml.messaging.handler.AbstractMessageHandlerorg.opensaml.messaging.handler.MessageHandlerExceptionprotected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doInvoke in class org.opensaml.messaging.handler.AbstractMessageHandlerorg.opensaml.messaging.handler.MessageHandlerExceptionCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.