@NotThreadSafe public class AttributeMappingNodeProcessor extends Object implements org.opensaml.saml.metadata.resolver.filter.MetadataNodeProcessor
MetadataNodeProcessor which extracts IdPRequestedAttributes from any
AttributeConsumingService we find and IdPAttributes from any EntityDescriptor that we find.| Modifier and Type | Field and Description |
|---|---|
private ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> |
attributeResolverService
Service used to get the resolver used to fetch attributes.
|
private SAML2AttributesMapper |
attributesMapper
Cached AttributeMapper.
|
private DateTime |
lastReload
Date when the cache was last refreshed.
|
private org.slf4j.Logger |
log
Class logger.
|
private boolean |
refreshFailed
Whether the last invocation of
refreshMappers() failed. |
private RequestedAttributesMapper |
requestedAttributesMapper
Cached RequestedAttributeMapper.
|
| Constructor and Description |
|---|
AttributeMappingNodeProcessor(ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> resolverService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SAML2AttributesMapper |
getAttributesMapper()
Get the current AttributesMapper.
|
RequestedAttributesMapper |
getRequestedAttributesMapper()
Get the current RequestedAttributesMapper.
|
private void |
handleAttributeConsumingService(org.opensaml.saml.saml2.metadata.AttributeConsumingService acs)
Look inside the
AttributeConsumingService for any RequestedAttributes and map them. |
private void |
handleEntityDescriptor(org.opensaml.saml.saml2.metadata.EntityDescriptor entity)
Look inside the
EntityDescriptor for entities Attributes and map them. |
void |
process(org.opensaml.core.xml.XMLObject metadataNode) |
protected void |
refreshMappers()
Inspect the service and see whether we need to reload the mappers.
|
void |
setAttributesMapper(SAML2AttributesMapper mapper)
Set the current AttributesMapper.
|
void |
setRequestedAttributesMapper(RequestedAttributesMapper mapper)
Set the current RequestedAttributesMapper.
|
@Nonnull private final org.slf4j.Logger log
@Nonnull private final ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> attributeResolverService
@Nonnull private boolean refreshFailed
refreshMappers() failed.@Nullable private RequestedAttributesMapper requestedAttributesMapper
@Nullable private SAML2AttributesMapper attributesMapper
public AttributeMappingNodeProcessor(@Nonnull ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> resolverService)
resolverService - the service for the attribute resolver we are to derive unmapping info frompublic RequestedAttributesMapper getRequestedAttributesMapper()
public void setRequestedAttributesMapper(@Nullable RequestedAttributesMapper mapper)
mapper - what to set.public SAML2AttributesMapper getAttributesMapper()
public void setAttributesMapper(@Nullable SAML2AttributesMapper mapper)
mapper - what to set.protected void refreshMappers()
throws org.opensaml.saml.metadata.resolver.filter.FilterException
org.opensaml.saml.metadata.resolver.filter.FilterException - if the mapping generation failspublic void process(org.opensaml.core.xml.XMLObject metadataNode)
throws org.opensaml.saml.metadata.resolver.filter.FilterException
process in interface org.opensaml.saml.metadata.resolver.filter.MetadataNodeProcessororg.opensaml.saml.metadata.resolver.filter.FilterExceptionprivate void handleAttributeConsumingService(org.opensaml.saml.saml2.metadata.AttributeConsumingService acs)
AttributeConsumingService for any RequestedAttributes and map them.acs - the AttributeConsumingService to look atprivate void handleEntityDescriptor(org.opensaml.saml.saml2.metadata.EntityDescriptor entity)
EntityDescriptor for entities Attributes and map them.entity - the entityCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.