public class AddMessageIDHandler extends AbstractHeaderGeneratingMessageHandler
The value from WSAddressingContext.getMessageIDURI() will be used, if present. If not,
then the value generated via the locally-configured strategy getIdentifierGenerationStrategy()
will be used. If neither of those sources are available, then a random "urn:uuid:..." URI value will be
generated internally using UUID.
| Modifier and Type | Field and Description |
|---|---|
private net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy |
identifierGenerationStrategy
Strategy for generating identifiers.
|
private Logger |
log
Logger.
|
| Constructor and Description |
|---|
AddMessageIDHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy |
getIdentifierGenerationStrategy()
Get the identifier generation strategy.
|
protected String |
getMessageID(org.opensaml.messaging.context.MessageContext messageContext)
Get the effective message ID value to issue in the outbound message.
|
void |
setIdentifierGenerationStrategy(net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy strategy)
Set the identifier generation strategy.
|
decorateGeneratedHeader, doPreInvoke, getEffectiveTargetNode, isEffectiveMustUnderstand, setMustUnderstand, setMustUnderstandStrategy, setTargetNode, setTargetNodeStrategydoPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedprivate Logger log
private net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy identifierGenerationStrategy
@Nullable public net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy getIdentifierGenerationStrategy()
public void setIdentifierGenerationStrategy(@Nullable net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy strategy)
strategy - the new strategyprotected 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–2016 Shibboleth Consortium. All rights reserved.