public class SAMLAddAttributeConsumingServiceHandler
extends org.opensaml.messaging.handler.AbstractMessageHandler
MessageHandler that attaches an AttributeConsumingServiceContext
to the SAMLMetadataContext based on the content of an AuthnRequest in the message context.| Modifier and Type | Field and Description |
|---|---|
private AuthnRequest |
authnRequest
Request to read from.
|
private Logger |
log
Logger.
|
private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> |
metadataContextStrategy
How to get the
SAMLMetadataContext from the message. |
| Constructor and Description |
|---|
SAMLAddAttributeConsumingServiceHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
protected boolean |
doPreInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> |
getMetadataContextStrategy()
Get the strategy which find the
SAMLMetadataContext from the message. |
void |
setMetadataContextStrategy(com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> strategy)
Set the strategy which find the
SAMLMetadataContext from the message. |
doPostInvoke, doPostInvoke, getLogPrefix, invokedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized@Nonnull private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> metadataContextStrategy
SAMLMetadataContext from the message.@Nullable private AuthnRequest authnRequest
public SAMLAddAttributeConsumingServiceHandler()
@Nonnull public com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> getMetadataContextStrategy()
SAMLMetadataContext from the message.public void setMetadataContextStrategy(@Nonnull com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> strategy)
SAMLMetadataContext from the message.strategy - what to setprotected boolean doPreInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext)
doPreInvoke in class org.opensaml.messaging.handler.AbstractMessageHandlerprotected void doInvoke(@Nonnull 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–2014. All rights reserved.