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
public class AddSenderHandler extends AbstractHeaderGeneratingMessageHandler
Handler implementation that adds a Liberty sb:Sender header to the outbound SOAP envelope.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddSenderHandler.SAMLSelfEntityIDLookupFunctionFunction to return the SAML self entityID from the MessageContext.
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogLogger.private StringproviderIdThe providerId value to send.private Function<MessageContext,String>providerIdLookupFunctionThe providerId lookup function.
-
Constructor Summary
Constructors Constructor Description AddSenderHandler()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, 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 Detail
-
log
@Nonnull private org.slf4j.Logger log
Logger.
-
providerIdLookupFunction
@Nonnull private Function<MessageContext,String> providerIdLookupFunction
The providerId lookup function.
-
providerId
private String providerId
The providerId value to send.
-
-
Method Detail
-
setProviderIdLookupFunction
public void setProviderIdLookupFunction(Function<MessageContext,String> function)
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
protected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-