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.
| Modifier and Type | Field and Description |
|---|---|
private QName |
peerRole
Role type to add to context.
|
private String |
samlProtocol
Protocol value to add to context.
|
| Constructor and Description |
|---|
SAMLProtocolAndRoleHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
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, invokedestroy, doDestroy, initialize, isDestroyed, isInitialized@NonnullAfterInit @NotEmpty private String samlProtocol
@NonnullAfterInit private QName peerRole
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.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected void doInvoke(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–2015. All rights reserved.