Class AbstractSAMLDataConnectorParser
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.dc.AbstractDataConnectorParser
net.shibboleth.idp.attribute.resolver.spring.dc.saml.impl.AbstractSAMLDataConnectorParser
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
SimpleAggregationSAMLDataConnectorParser
Base abstract parser for a
SAMLDataConnector.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classA class for representing the definition of a custom property.protected static classA class for representing the value of a custom property. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<String,AbstractSAMLDataConnectorParser.CustomPropertyDef> Map of custom property definitions for bean wiring.private final org.slf4j.LoggerLogger.private final Map<String,AbstractSAMLDataConnectorParser.CustomPropertyValue> Map of custom bean properties for bean wiring.Fields inherited from class net.shibboleth.idp.attribute.resolver.spring.dc.AbstractDataConnectorParser
ATTR_EXPORT_NAMES, ATTR_FAIL_FAST, ATTR_NORETRYDELAY, ELEMENT_NAME, FAIL_FAST_DEFAULT, FAILOVER_DATA_CONNECTOR_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 voidaddCustomProperties(BeanDefinitionBuilder builder, String... propNames) Add the specified indirected property values to the specified bean definition builder.protected abstract BeanDefinitiongetAuthorityEntityIDStrategy(Element config, ParserContext parserContext) Get the bean definition for theAttributeAuthorityEntityIDResolver.getResolvedCustomProperty(String propName) Get the resolved custom property value, if exists.protected abstract BeanDefinitiongetSelfEntityIDStrategy(Element config, ParserContext parserContext) Get the bean definition for theSelfEntityIDResolver.protected abstract BeanDefinitiongetSubjectStrategy(Element config, ParserContext parserContext) Get the bean definition for theSubjectResolver.protected BeanDefinitionparseAssertionValidationProcessor(Element config, ParserContext parserContext) Parse and return bean definition forAssertionValidationProcessor.private voidparseCommonDataConnector(Element config, ParserContext parserContext, BeanDefinitionBuilder builder) Parse the things that are a part of the base data connector class hierarchy.protected BeanDefinitionparseDecryptionProcessor(Element config, ParserContext parserContext) Parse and return bean definition forDecryptionProcessor.protected BeanDefinitionparseMappingStrategy(Element config, ParserContext parserContext) Parse the response mapping strategy.protected BeanDefinitionparseQueryBuilder(Element config, ParserContext parserContext) Parse the query builder.protected BeanDefinitionparseSAMLDataConnector(Element config, ParserContext parserContext) Parse the SAML data connector.protected BeanDefinitionparseSubjectMatchProcessor(Element config, ParserContext parserContext) Parse and return bean definition forSubjectMatchProcessor.protected voidresolveAndStoreCustomProperties(Map<String, AbstractSAMLDataConnectorParser.CustomPropertyDef> customPropertyDefs) Resolve and store the custom properties indicated by the input map.Methods inherited from class net.shibboleth.idp.attribute.resolver.spring.dc.AbstractDataConnectorParser
doParse, getLogPrefixMethods 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
-
CUSTOM_PROPERTY_DEFS
@Nonnull private static final Map<String,AbstractSAMLDataConnectorParser.CustomPropertyDef> CUSTOM_PROPERTY_DEFSMap of custom property definitions for bean wiring. -
resolvedCustomProperties
@Nonnull private final Map<String,AbstractSAMLDataConnectorParser.CustomPropertyValue> resolvedCustomPropertiesMap of custom bean properties for bean wiring. -
log
@Nonnull private final org.slf4j.Logger logLogger.
-
-
Constructor Details
-
AbstractSAMLDataConnectorParser
protected AbstractSAMLDataConnectorParser()Constructor.
-
-
Method Details
-
parseCommonDataConnector
private void parseCommonDataConnector(@Nonnull Element config, @Nonnull ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder) Parse the things that are a part of the base data connector class hierarchy.- Parameters:
config- the configuration elementparserContext- the current parser contextbuilder- the builder to configure
-
parseSAMLDataConnector
@Nonnull protected BeanDefinition parseSAMLDataConnector(@Nonnull Element config, @Nonnull ParserContext parserContext) Parse the SAML data connector.- Parameters:
config- the configuration elementparserContext- the current parser context- Returns:
- the bean definition
-
parseMappingStrategy
@Nonnull protected BeanDefinition parseMappingStrategy(@Nonnull Element config, @Nonnull ParserContext parserContext) Parse the response mapping strategy.- Parameters:
config- the configuration elementparserContext- the current parser context- Returns:
- the bean definition
-
parseQueryBuilder
@Nonnull protected BeanDefinition parseQueryBuilder(@Nonnull Element config, @Nonnull ParserContext parserContext) Parse the query builder.- Parameters:
config- the configuration elementparserContext- the current parser context- Returns:
- the bean definition
-
parseDecryptionProcessor
@Nonnull protected BeanDefinition parseDecryptionProcessor(@Nonnull Element config, @Nonnull ParserContext parserContext) Parse and return bean definition forDecryptionProcessor.- Parameters:
config- the configuration elementparserContext- the current parser context- Returns:
- the bean definition
-
parseAssertionValidationProcessor
@Nonnull protected BeanDefinition parseAssertionValidationProcessor(@Nonnull Element config, @Nonnull ParserContext parserContext) Parse and return bean definition forAssertionValidationProcessor.- Parameters:
config- the configuration elementparserContext- the current parser context- Returns:
- the bean definition
-
parseSubjectMatchProcessor
@Nonnull protected BeanDefinition parseSubjectMatchProcessor(@Nonnull Element config, @Nonnull ParserContext parserContext) Parse and return bean definition forSubjectMatchProcessor.- Parameters:
config- the configuration elementparserContext- the current parser context- Returns:
- the bean definition
-
getResolvedCustomProperty
@Nullable protected AbstractSAMLDataConnectorParser.CustomPropertyValue getResolvedCustomProperty(@Nonnull String propName) Get the resolved custom property value, if exists.- Parameters:
propName- the custom property name- Returns:
- the custom property value, or null
-
addCustomProperties
protected void addCustomProperties(@Nonnull BeanDefinitionBuilder builder, @Nonnull String... propNames) Add the specified indirected property values to the specified bean definition builder.- Parameters:
builder- the bean definition builderpropNames- the property names
-
resolveAndStoreCustomProperties
protected void resolveAndStoreCustomProperties(@Nonnull Map<String, AbstractSAMLDataConnectorParser.CustomPropertyDef> customPropertyDefs) Resolve and store the custom properties indicated by the input map.- Parameters:
customPropertyDefs- the custom property definitions to resolve
-
getAuthorityEntityIDStrategy
@Nonnull protected abstract BeanDefinition getAuthorityEntityIDStrategy(@Nonnull Element config, @Nonnull ParserContext parserContext) Get the bean definition for theAttributeAuthorityEntityIDResolver.- Parameters:
config- the configuration elementparserContext- the current parser context- Returns:
- the bean definition
-
getSelfEntityIDStrategy
@Nonnull protected abstract BeanDefinition getSelfEntityIDStrategy(@Nonnull Element config, @Nonnull ParserContext parserContext) Get the bean definition for theSelfEntityIDResolver.- Parameters:
config- the configuration elementparserContext- the current parser context- Returns:
- the bean definition
-
getSubjectStrategy
@Nonnull protected abstract BeanDefinition getSubjectStrategy(@Nonnull Element config, @Nonnull ParserContext parserContext) Get the bean definition for theSubjectResolver.- Parameters:
config- the configuration elementparserContext- the current parser context- Returns:
- the bean definition
-