All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
X509InlineCredentialParser, X509ResourceCredentialParser

public abstract class AbstractX509CredentialParser extends AbstractCredentialParser
Specific parser for all X509Credentials.

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>.
    • CERTIFICATE_ELEMENT_NAME

      public static final QName CERTIFICATE_ELEMENT_NAME
      <Certificate>.
    • CRL_ELEMENT_NAME

      public static final QName CRL_ELEMENT_NAME
      <CRL>.
    • log

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

    • AbstractX509CredentialParser

      public AbstractX509CredentialParser()
  • Method Details

    • doParse

      protected void doParse(Element element, BeanDefinitionBuilder builder)
      Overrides:
      doParse in class AbstractSingleBeanDefinitionParser
    • parsePrivateKey

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

      private void parseCertificates(@Nullable List<Element> childElements, @Nonnull BeanDefinitionBuilder builder)
      Parse the <Certificate> elements.
      Parameters:
      childElements - the elements containing the certificates, Must have at least one element.
      builder - the builder
    • parseCRLs

      private void parseCRLs(@Nullable List<Element> childElements, @Nonnull BeanDefinitionBuilder builder)
      Parse the <CRL> elements.
      Parameters:
      childElements - the elements containing the CRLs, Must have at least one element.
      builder - the builder