Class AddSenderHandler
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
org.opensaml.soap.messaging.AbstractHeaderGeneratingMessageHandler
net.shibboleth.idp.saml.saml2.profile.delegation.messaging.impl.AddSenderHandler
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
Handler implementation that adds a Liberty sb:Sender header to the outbound SOAP envelope.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFunction to return the SAML self entityID from the MessageContext. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.slf4j.LoggerLogger.private StringThe providerId value to send.private Function<MessageContext,String> The providerId lookup function. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoInvoke(MessageContext messageContext) protected booleandoPreInvoke(MessageContext messageContext) voidsetProviderIdLookupFunction(Function<MessageContext, String> function) Set the providerId lookup function.Methods inherited from class org.opensaml.soap.messaging.AbstractHeaderGeneratingMessageHandler
decorateGeneratedHeader, getEffectiveTargetNode, isEffectiveMustUnderstand, setMustUnderstand, setMustUnderstandStrategy, setTargetNode, setTargetNodeStrategyMethods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditionMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, 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.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logLogger. -
providerIdLookupFunction
The providerId lookup function. -
providerId
The providerId value to send.
-
-
Constructor Details
-
AddSenderHandler
public AddSenderHandler()Constructor. *
-
-
Method Details
-
setProviderIdLookupFunction
Set the providerId lookup function.- Parameters:
function- the lookup function
-
doPreInvoke
protected boolean doPreInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException - Overrides:
doPreInvokein classAbstractHeaderGeneratingMessageHandler- Throws:
MessageHandlerException
-
doInvoke
- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-