Class AbstractSAMLDataConnectorParser

All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
SimpleAggregationSAMLDataConnectorParser

public abstract class AbstractSAMLDataConnectorParser extends AbstractDataConnectorParser
Base abstract parser for a SAMLDataConnector.
  • Field Details

  • 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 element
      parserContext - the current parser context
      builder - the builder to configure
    • parseSAMLDataConnector

      @Nonnull protected BeanDefinition parseSAMLDataConnector(@Nonnull Element config, @Nonnull ParserContext parserContext)
      Parse the SAML data connector.
      Parameters:
      config - the configuration element
      parserContext - 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 element
      parserContext - 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 element
      parserContext - the current parser context
      Returns:
      the bean definition
    • parseDecryptionProcessor

      @Nonnull protected BeanDefinition parseDecryptionProcessor(@Nonnull Element config, @Nonnull ParserContext parserContext)
      Parse and return bean definition for DecryptionProcessor.
      Parameters:
      config - the configuration element
      parserContext - the current parser context
      Returns:
      the bean definition
    • parseAssertionValidationProcessor

      @Nonnull protected BeanDefinition parseAssertionValidationProcessor(@Nonnull Element config, @Nonnull ParserContext parserContext)
      Parse and return bean definition for AssertionValidationProcessor.
      Parameters:
      config - the configuration element
      parserContext - the current parser context
      Returns:
      the bean definition
    • parseSubjectMatchProcessor

      @Nonnull protected BeanDefinition parseSubjectMatchProcessor(@Nonnull Element config, @Nonnull ParserContext parserContext)
      Parse and return bean definition for SubjectMatchProcessor.
      Parameters:
      config - the configuration element
      parserContext - 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 builder
      propNames - 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 the AttributeAuthorityEntityIDResolver.
      Parameters:
      config - the configuration element
      parserContext - 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 the SelfEntityIDResolver.
      Parameters:
      config - the configuration element
      parserContext - 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 the SubjectResolver.
      Parameters:
      config - the configuration element
      parserContext - the current parser context
      Returns:
      the bean definition