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, invoke
destroy, doDestroy, initialize, isDestroyed, isInitialized
public 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.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected void doInvoke(MessageContext messageContext) throws MessageHandlerException
doInvoke
in class AbstractMessageHandler
messageContext
- the message context on which to invoke the handlerMessageHandlerException
- if there is an error invoking the handler on the message contextCopyright © 2016. All rights reserved.