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.
| Modifier and Type | Field and Description |
|---|---|
private javax.xml.namespace.QName |
peerRole
Role type to add to context.
|
private java.lang.String |
samlProtocol
Protocol value to add to context.
|
| Constructor and Description |
|---|
SAMLProtocolAndRoleHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
protected void |
doInvoke(MessageContext messageContext)
Performs the handler logic.
|
void |
setProtocol(java.lang.String protocol)
Set the protocol constant to attach.
|
void |
setRole(javax.xml.namespace.QName role)
Set the operational role to attach.
|
doPostInvoke, doPostInvoke, doPreInvoke, getLogPrefix, invokedestroy, doDestroy, initialize, isDestroyed, isInitialized@NonnullAfterInit @NotEmpty private java.lang.String samlProtocol
@NonnullAfterInit private javax.xml.namespace.QName peerRole
public void setProtocol(@Nonnull @NotEmpty
java.lang.String protocol)
protocol - the protocol constant to setpublic void setRole(@Nonnull
javax.xml.namespace.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 context