Class AttributeMappingNodeProcessor
- java.lang.Object
-
- net.shibboleth.idp.saml.metadata.impl.AttributeMappingNodeProcessor
-
- All Implemented Interfaces:
MetadataNodeProcessor
@NotThreadSafe public class AttributeMappingNodeProcessor extends Object implements MetadataNodeProcessor
An implementation ofMetadataNodeProcessorwhich extractsIdPRequestedAttributes from anyAttributeConsumingServicewe find andIdPAttributes from anyEntityDescriptorthat we find.
-
-
Field Summary
Fields Modifier and Type Field Description private AttributeTranscoder<Attribute>defaultTranscoderFallback for URI-named entity tags.private org.slf4j.LoggerlogClass logger.private ReloadableService<AttributeTranscoderRegistry>transcoderRegistryService used to get the registry of decoding rules.
-
Constructor Summary
Constructors Constructor Description AttributeMappingNodeProcessor(ReloadableService<AttributeTranscoderRegistry> registry)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private <T> voiddecodeAttribute(Collection<TranscodingRule> rules, T input, Multimap<String,IdPAttribute> results)Access the registry of transcoding rules to decode the input object.private voidhandleAttributeConsumingService(AttributeTranscoderRegistry registry, AttributeConsumingService acs)Look inside theAttributeConsumingServicefor anyRequestedAttributes and map them.private voidhandleEntityAttributes(AttributeTranscoderRegistry registry, Extensions extensions)Look inside theExtensionsforEntityAttributesand map them.voidprocess(XMLObject metadataNode)
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
transcoderRegistry
@Nonnull private final ReloadableService<AttributeTranscoderRegistry> transcoderRegistry
Service used to get the registry of decoding rules.
-
defaultTranscoder
@Nonnull private final AttributeTranscoder<Attribute> defaultTranscoder
Fallback for URI-named entity tags.
-
-
Constructor Detail
-
AttributeMappingNodeProcessor
public AttributeMappingNodeProcessor(@Nonnull ReloadableService<AttributeTranscoderRegistry> registry)Constructor.- Parameters:
registry- the service for the decoding rules
-
-
Method Detail
-
process
public void process(XMLObject metadataNode) throws FilterException
- Specified by:
processin interfaceMetadataNodeProcessor- Throws:
FilterException
-
handleAttributeConsumingService
private void handleAttributeConsumingService(@Nonnull AttributeTranscoderRegistry registry, @Nonnull AttributeConsumingService acs)Look inside theAttributeConsumingServicefor anyRequestedAttributes and map them.- Parameters:
registry- the registry serviceacs- theAttributeConsumingServiceto look at
-
handleEntityAttributes
private void handleEntityAttributes(@Nonnull AttributeTranscoderRegistry registry, @Nullable Extensions extensions)Look inside theExtensionsforEntityAttributesand map them.- Parameters:
registry- the registry serviceextensions- the extensions block
-
decodeAttribute
private <T> void decodeAttribute(@Nonnull @NonnullElements Collection<TranscodingRule> rules, @Nonnull T input, @Nonnull @NonnullElements @Live Multimap<String,IdPAttribute> results) throws AttributeDecodingException
Access the registry of transcoding rules to decode the input object.- Type Parameters:
T- input type- Parameters:
rules- transcoding rulesinput- input objectresults- collection to add results to- Throws:
AttributeDecodingException- if an error occurs or no results were obtained
-
-