/** {@inheritDoc} */ @Override protected void doParse( @Nonnull final Element config, @Nonnull final ParserContext parserContext, @Nonnull final BeanDefinitionBuilder builder) { log.warn("PrincipalConnector feature is DEPRECATED in favor of subject c14n flows"); builder.setInitMethodName("initialize"); builder.setDestroyMethodName("destroy"); super.doParse(config, parserContext, builder); // First up, add the per type decoders addSAMLDecoders(config, parserContext, builder); final String format = StringSupport.trimOrNull(config.getAttributeNS(null, "nameIDFormat")); builder.addConstructorArgValue(format); final String id = StringSupport.trimOrNull(config.getAttributeNS(null, "id")); builder.addPropertyValue("id", id); final List<Element> children = ElementSupport.getChildElements(config, RELYING_PARTY); final List<String> relyingParties = new ManagedList<>(children.size()); for (Element child : children) { relyingParties.add(child.getTextContent()); } builder.addPropertyValue("relyingParties", relyingParties); }
/** {@inheritDoc} */ protected void doParse(Element config, BeanDefinitionBuilder builder) { log.info("Parsing configuration for JSP error handler."); super.doParse(config, builder); if (config.hasAttributeNS(null, "jspPagePath")) { builder.addConstructorArgValue(config.getAttributeNS(null, "jspPagePath")); } else { builder.addConstructorArgValue(config.getAttributeNS(null, "/error.jsp")); } }
@Override protected void doParse(Element element, BeanDefinitionBuilder builder) { String clz = element.getAttribute("class"); String key = element.getAttribute("key"); builder.addPropertyValue("typeClass", clz); if (StringUtils.hasText(key)) { builder.addPropertyValue("key", key); } super.doParse(element, builder); }