@NotThreadSafe public class AttributeMappingNodeProcessor extends Object implements 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 org.joda.time.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(AttributeConsumingService acs)
Look inside the
AttributeConsumingService for any RequestedAttributes and map them. |
private void |
handleEntityDescriptor(EntityDescriptor entity)
Look inside the
EntityDescriptor for entities Attributes and map them. |
void |
process(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
@Nullable private org.joda.time.DateTime lastReload
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 FilterException
FilterException - if the mapping generation failspublic void process(XMLObject metadataNode) throws FilterException
process in interface MetadataNodeProcessorFilterExceptionprivate void handleAttributeConsumingService(AttributeConsumingService acs)
AttributeConsumingService for any RequestedAttributes and map them.acs - the AttributeConsumingService to look atprivate void handleEntityDescriptor(EntityDescriptor entity)
EntityDescriptor for entities Attributes and map them.entity - the entityCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.