public class SAMLMetadataLookupHandler
extends org.opensaml.messaging.handler.AbstractMessageHandler
SAMLMetadataContext as a child of a
pre-existing concrete instance of AbstractSAMLEntityContext. The entity context class is configurable
and defaults to SAMLPeerEntityContext.
The handler will no-op in the absence of a populated AbstractSAMLEntityContext instance
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 Class<? extends AbstractSAMLEntityContext> |
entityContextClass
The context class representing the SAML entity whose data is to be resolved.
|
private 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(org.opensaml.messaging.context.MessageContext messageContext) |
void |
setEntityContextClass(Class<? extends AbstractSAMLEntityContext> clazz)
Set the class type holding the SAML entity data.
|
void |
setRoleDescriptorResolver(RoleDescriptorResolver resolver)
Set the
RoleDescriptorResolver to use. |
doPostInvoke, doPostInvoke, doPreInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, initialize, isDestroyed, isInitialized@NonnullAfterInit private RoleDescriptorResolver metadataResolver
@Nonnull private Class<? extends AbstractSAMLEntityContext> entityContextClass
SAMLPeerEntityContext.public void setEntityContextClass(@Nonnull Class<? extends AbstractSAMLEntityContext> clazz)
Defaults to: SAMLPeerEntityContext.
clazz - the entity context class typepublic 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 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–2020 Shibboleth Consortium. All rights reserved.