Class AbstractBasicCredentialParser

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

      @Nonnull public static final QName PRIVATE_KEY_ELEMENT_NAME
      <PrivateKey>.
    • PUBLIC_KEY_ELEMENT_NAME

      @Nonnull public static final QName PUBLIC_KEY_ELEMENT_NAME
      <PublicKey>.
    • SECRET_KEY_ELEMENT_NAME

      @Nonnull public static final QName SECRET_KEY_ELEMENT_NAME
      <SecretKey>.
    • log

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

    • AbstractBasicCredentialParser

      public AbstractBasicCredentialParser()
  • Method Details

    • doParse

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

      private void parsePrivateKey(@Nullable List<Element> childElements, @Nonnull 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, @Nonnull 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, @Nonnull 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