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 com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,Integer> |
indexLookupStrategy
Lookup strategy for an
AttributeConsumingService index. |
private org.slf4j.Logger |
log
Logger.
|
private com.google.common.base.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(com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,Integer> strategy)
Set the strategy to locate the
AttributeConsumingService index from the MessageContext . |
void |
setMetadataContextLookupStrategy(com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> strategy)
Set the strategy to locate the
SAMLMetadataContext from the MessageContext . |
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
@Nonnull private final org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> metadataContextLookupStrategy
SAMLMetadataContext
.@Nullable private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,Integer> indexLookupStrategy
AttributeConsumingService
index.@Nullable private Integer index
AttributeConsumingService
index.public SAMLAddAttributeConsumingServiceHandler()
public void setMetadataContextLookupStrategy(@Nonnull com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> strategy)
SAMLMetadataContext
from the MessageContext
.strategy
- lookup strategypublic void setIndexLookupStrategy(@Nullable com.google.common.base.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.AbstractMessageHandler
org.opensaml.messaging.handler.MessageHandlerException
protected void doInvoke(@Nonnull 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 © 1999–2020 Shibboleth Consortium. All rights reserved.