All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
BasicInlineCredentialParser, BasicResourceCredentialParser

public abstract class AbstractBasicCredentialParser
extends AbstractCredentialParser
Specific parser for all BasicCredentials.

This does the work of putting the element values into strings. The bean factory then does the correct thing - with some help from Spring doing auto-conversion.

  • Field Details

    • PRIVATE_KEY_ELEMENT_NAME

      public static final QName PRIVATE_KEY_ELEMENT_NAME
      <PrivateKey>.
    • PUBLIC_KEY_ELEMENT_NAME

      public static final QName PUBLIC_KEY_ELEMENT_NAME
      <PublicKey>.
    • SECRET_KEY_ELEMENT_NAME

      public static final QName SECRET_KEY_ELEMENT_NAME
      <SecretKey>.
    • log

      private final org.slf4j.Logger log
      log.
  • Constructor Details

    • AbstractBasicCredentialParser

      public AbstractBasicCredentialParser()
  • Method Details

    • doParse

      protected void doParse​(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)
      Overrides:
      doParse in class AbstractCredentialParser
    • parsePrivateKey

      private void parsePrivateKey​(@Nullable List<Element> childElements, ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder)
      Parse the <PrivateKey> element.
      Parameters:
      childElements - the elements containing the private key, may be null or empty.
      parserContext - used for logging.
      builder - the builder.
    • parsePublicKey

      private void parsePublicKey​(@Nullable List<Element> childElements, ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder)
      Parse the <PublicKey> elements.
      Parameters:
      childElements - the elements containing the public key, must have exactly one element
      parserContext - used for logging.
      builder - the builder
    • parseSecretKey

      private void parseSecretKey​(@Nullable List<Element> childElements, ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder)
      Parse the <SecretKey> element.
      Parameters:
      childElements - the elements containing the private key, may be null or empty.
      parserContext - used for logging.
      builder - the builder