Class BaseAttributeDefinitionParser
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
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
ContextDerivedAttributeDefinitionParser,DateTimeAttributeDefinitionParser,DecryptedAttributeDefinitionParser,MappedAttributeDefinitionParser,PrescopedAttributeDefinitionParser,PrincipalNameAttributeDefinitionParser,RegexSplitAttributeDefinitionParser,SAML1NameIdentifierAttributeDefinitionParser,SAML2NameIDAttributeDefinitionParser,ScopedAttributeDefinitionParser,ScriptedAttributeDefinitionParser,SimpleAttributeDefinitionParser,SubjectDerivedAttributeDefinitionParser,TemplateAttributeDefinitionParser
Base spring bean definition parser for attribute definitions. AttributeDefinition implementations should provide a
custom BeanDefinitionParser by extending this class and overriding the doParse() method to parse any additional
attributes or elements it requires. Standard attributes and elements defined by the ResolutionPlugIn and
AttributeDefinition schemas will automatically attempt to be parsed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QNameLocal name of attribute encoder.static final QNameElement name.private final org.slf4j.LoggerClass logger.Fields 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 StringReturn a string which is to be prepended to all log messages.Methods inherited from class net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginParser
failOnDependencies, getActivationCondition, getDefinitionId, warnOnDependenciesMethods inherited from class net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
getCustomProperty, registerBeanDefinitionMethods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClass, getBeanClassName, getParentName, parseInternalMethods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Field Details
-
ELEMENT_NAME
Element name. -
ATTRIBUTE_ENCODER_ELEMENT_NAME
Local name of attribute encoder. -
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
BaseAttributeDefinitionParser
public BaseAttributeDefinitionParser()
-
-
Method Details
-
doParse
protected void doParse(@Nonnull Element config, @Nonnull ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder) - Overrides:
doParsein classBaseResolverPluginParser
-
getLogPrefix
Return a string which is to be prepended to all log messages.- Overrides:
getLogPrefixin classBaseResolverPluginParser- Returns:
- "Attribute Definition '<definitionID>' :"
-