public class SAMLProtocolAndRoleHandler extends AbstractMessageHandler
MessageHandler that attaches protocol
and role information to a message context via SAMLProtocolContext and
SAMLPeerEntityContext objects.
A profile flow would typically run this handler after message decoding occurs, to bootstrap subsequent handlers.
| Constructor and Description |
|---|
SAMLProtocolAndRoleHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
protected void |
doInvoke(MessageContext messageContext)
Performs the handler logic.
|
void |
setProtocol(String protocol)
Set the protocol constant to attach.
|
void |
setRole(QName role)
Set the operational role to attach.
|
doPostInvoke, doPostInvoke, doPreInvoke, getLogPrefix, invokedestroy, doDestroy, initialize, isDestroyed, isInitializedpublic void setProtocol(@Nonnull @NotEmpty String protocol)
protocol - the protocol constant to setpublic void setRole(@Nonnull QName role)
role - the operational role 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 void doInvoke(MessageContext messageContext) throws MessageHandlerException
doInvoke in class AbstractMessageHandlermessageContext - the message context on which to invoke the handlerMessageHandlerException - if there is an error invoking the handler on the message contextCopyright © 2021. All rights reserved.