public class SAMLProtocolAndRoleHandler
extends org.opensaml.messaging.handler.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()
Performs the initialization of the component.
|
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, 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 ComponentInitializationException
doInitialize
in class AbstractInitializableComponent
ComponentInitializationException
- thrown if there is a problem initializing the componentprotected void doInvoke(org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doInvoke
in class org.opensaml.messaging.handler.AbstractMessageHandler
org.opensaml.messaging.handler.MessageHandlerException
Copyright © 2016 JBoss by Red Hat. All rights reserved.