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 class
Function to return the SAML self entityID from the MessageContext. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.slf4j.Logger
Logger.private String
The providerId value to send.private Function<MessageContext,
String> The providerId lookup function. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doInvoke
(MessageContext messageContext) protected boolean
doPreInvoke
(MessageContext messageContext) void
setProviderIdLookupFunction
(Function<MessageContext, String> function) Set the providerId lookup function.Methods inherited from class org.opensaml.soap.messaging.AbstractHeaderGeneratingMessageHandler
decorateGeneratedHeader, getEffectiveTargetNode, isEffectiveMustUnderstand, setMustUnderstand, setMustUnderstandStrategy, setTargetNode, setTargetNodeStrategy
Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, 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 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:
doPreInvoke
in classAbstractHeaderGeneratingMessageHandler
- Throws:
MessageHandlerException
-
doInvoke
- Specified by:
doInvoke
in classAbstractMessageHandler
- Throws:
MessageHandlerException
-