Class AttributeMappingNodeProcessor
java.lang.Object
net.shibboleth.idp.saml.attribute.impl.AttributeMappingNodeProcessor
- All Implemented Interfaces:
MetadataNodeProcessor
@NotThreadSafe
public class AttributeMappingNodeProcessor
extends Object
implements MetadataNodeProcessor
An implementation of
MetadataNodeProcessor which extracts IdPRequestedAttributes from any
AttributeConsumingService we find and IdPAttributes from any EntityDescriptor that we find.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AttributeTranscoder<Attribute>Fallback for URI-named entity tags.private final org.slf4j.LoggerClass logger.private final ReloadableService<AttributeTranscoderRegistry>Service used to get the registry of decoding rules. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionprivate <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.void
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
transcoderRegistry
Service used to get the registry of decoding rules. -
defaultTranscoder
Fallback for URI-named entity tags.
-
-
Constructor Details
-
Method Details
-
process
- 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 Collection<TranscodingRule> rules, @Nonnull T input, @Nonnull Multimap<String, IdPAttribute> results) throws AttributeDecodingExceptionAccess 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
-