public class SAMLMetadataLookupHandler extends AbstractMessageHandler
SAMLMetadataContext as a child of the
pre-existing SAMLPeerEntityContext.
The handler will no-op in the absence of a populated SAMLPeerEntityContext for
the message with an entityID and role to look up. A protocol from a SAMLProtocolContext
will be added to the lookup, if available.
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Logger.
|
private RoleDescriptorResolver |
metadataResolver
Resolver used to look up SAML metadata.
|
| Constructor and Description |
|---|
SAMLMetadataLookupHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
protected void |
doInvoke(MessageContext messageContext)
Performs the handler logic.
|
void |
setRoleDescriptorResolver(RoleDescriptorResolver resolver)
Set the
RoleDescriptorResolver to use. |
doPostInvoke, doPostInvoke, doPreInvoke, getLogPrefix, invokedestroy, doDestroy, initialize, isDestroyed, isInitialized@Nonnull private final org.slf4j.Logger log
@NonnullAfterInit private RoleDescriptorResolver metadataResolver
public void setRoleDescriptorResolver(@Nonnull
RoleDescriptorResolver resolver)
RoleDescriptorResolver to use.resolver - the resolver to useprotected 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(@Nonnull
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