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 | Class and Description |
|---|---|
private class |
SAMLAddAttributeConsumingServiceHandler.AuthnRequestIndexLookup
Default lookup function that reads from a SAML 2
AuthnRequest. |
| Modifier and Type | Field and Description |
|---|---|
private Integer |
index
AttributeConsumingService index. |
private Function<org.opensaml.messaging.context.MessageContext,Integer> |
indexLookupStrategy
Lookup strategy for an
AttributeConsumingService index. |
private org.slf4j.Logger |
log
Logger.
|
private Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> |
metadataContextLookupStrategy
Lookup strategy for
SAMLMetadataContext. |
| 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) |
void |
setIndexLookupStrategy(Function<org.opensaml.messaging.context.MessageContext,Integer> strategy)
Set the strategy to locate the
AttributeConsumingService index from the MessageContext. |
void |
setMetadataContextLookupStrategy(Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> strategy)
Set the strategy to locate the
SAMLMetadataContext from the MessageContext. |
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull private Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> metadataContextLookupStrategy
SAMLMetadataContext.@Nullable private Function<org.opensaml.messaging.context.MessageContext,Integer> indexLookupStrategy
AttributeConsumingService index.@Nullable private Integer index
AttributeConsumingService index.public SAMLAddAttributeConsumingServiceHandler()
public void setMetadataContextLookupStrategy(@Nonnull Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> strategy)
SAMLMetadataContext from the MessageContext.strategy - lookup strategypublic void setIndexLookupStrategy(@Nullable Function<org.opensaml.messaging.context.MessageContext,Integer> strategy)
AttributeConsumingService index from the MessageContext.strategy - lookup strategyprotected boolean doPreInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doPreInvoke in class org.opensaml.messaging.handler.AbstractMessageHandlerorg.opensaml.messaging.handler.MessageHandlerExceptionprotected 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–2017 Shibboleth Consortium. All rights reserved.