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.AuthnRequestLookup
Default lookup function that find a SAML 2
AuthnRequest. |
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,AuthnRequest> |
authnRequestLookupStrategy
Lookup strategy for an
AuthnRequest index. |
private Integer |
index
AttributeConsumingService index - if specified. |
private Logger |
log
Logger.
|
private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> |
metadataContextLookupStrategy
Lookup strategy for
SAMLMetadataContext. |
private List<RequestedAttribute> |
requestedAttributes
RequestedAttribute list - if specified. |
| Constructor and Description |
|---|
SAMLAddAttributeConsumingServiceHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private AttributeConsumingService |
attributeConsumingServiceFromRequestedAttributes()
Generate an
AttributeConsumingService from the RequestedAttributes. |
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
protected boolean |
doPreInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
private List<RequestedAttribute> |
getRequestedAttributes(AuthnRequest authn)
Grab the
RequestedAttribute (if any) from the AuthnRequest. |
void |
setIndexLookupStrategy(com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,AuthnRequest> 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, setActivationConditiondestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized@Nonnull private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,SAMLMetadataContext> metadataContextLookupStrategy
SAMLMetadataContext.@Nonnull private com.google.common.base.Function<org.opensaml.messaging.context.MessageContext,AuthnRequest> authnRequestLookupStrategy
AuthnRequest index.@Nullable private Integer index
AttributeConsumingService index - if specified.@Nullable private List<RequestedAttribute> requestedAttributes
RequestedAttribute list - if specified.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,AuthnRequest> 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.MessageHandlerExceptionprivate AttributeConsumingService attributeConsumingServiceFromRequestedAttributes() throws org.opensaml.messaging.handler.MessageHandlerException
AttributeConsumingService from the RequestedAttributes.org.opensaml.messaging.handler.MessageHandlerException - when the cloning failedprivate List<RequestedAttribute> getRequestedAttributes(AuthnRequest authn)
RequestedAttribute (if any) from the AuthnRequest.authn - the request to interrogateCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.