Class SubjectDerivedAttributeDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginParser
net.shibboleth.idp.attribute.resolver.spring.ad.BaseAttributeDefinitionParser
net.shibboleth.idp.attribute.resolver.spring.ad.impl.SubjectDerivedAttributeDefinitionParser
- All Implemented Interfaces:
BeanDefinitionParser
Spring Bean Definition Parser for attribute definitions derived from the Principal.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.Class for sourcing values from Principal(s).Class for sourcing values from Subject(s).static final QNameSchema type name.Fields inherited from class net.shibboleth.idp.attribute.resolver.spring.ad.BaseAttributeDefinitionParser
ATTRIBUTE_ENCODER_ELEMENT_NAME, ELEMENT_NAMEFields inherited from class net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
CUSTOM_PARSER_PROPERTIES_LOCATIONFields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoParse(Element config, ParserContext parserContext, BeanDefinitionBuilder builder) .protected booleanControls parsing of Dependencies.protected Class<ContextDerivedAttributeDefinition>getBeanClass(Element element) Methods inherited from class net.shibboleth.idp.attribute.resolver.spring.ad.BaseAttributeDefinitionParser
getLogPrefixMethods inherited from class net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginParser
getActivationCondition, getDefinitionId, warnOnDependenciesMethods inherited from class net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
getCustomProperty, registerBeanDefinitionMethods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClassName, getParentName, parseInternalMethods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Field Details
-
TYPE_NAME
Schema type name. -
subjectDerivedClass
Class for sourcing values from Subject(s). -
principalDerivedClass
Class for sourcing values from Principal(s). -
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
SubjectDerivedAttributeDefinitionParser
public SubjectDerivedAttributeDefinitionParser()Constructor.
-
-
Method Details
-
getBeanClass
- Overrides:
getBeanClassin classAbstractSingleBeanDefinitionParser
-
doParse
protected void doParse(@Nonnull Element config, @Nonnull ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder) . We inject an inferred function to derive the attributes from the Subject.If 'principalAttributeName' we also inject an inferred function to derive the attributes from a Principal. If 'attributeValueFunctionRef' the user has provided the function.
ContextDerivedAttributeDefinitionParserhandles the case when the user injects the top level function.- Overrides:
doParsein classBaseAttributeDefinitionParser
-
failOnDependencies
protected boolean failOnDependencies()Controls parsing of Dependencies. If it is considered an invalid configuration for this resolver to have Dependency statements, return true. The surrounding logic will fail the parse.- Overrides:
failOnDependenciesin classBaseResolverPluginParser- Returns:
- false - by default.
-