1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package edu.internet2.middleware.shibboleth.idp.config.profile.authn;
18
19 import javax.xml.namespace.QName;
20
21 import org.opensaml.xml.util.DatatypeHelper;
22 import org.springframework.beans.factory.support.BeanDefinitionBuilder;
23 import org.w3c.dom.Element;
24
25 import edu.internet2.middleware.shibboleth.idp.config.profile.ProfileHandlerNamespaceHandler;
26
27
28
29
30 public class ExternalAuthnSystemLoginHandlerBeanDefinitionParser extends AbstractLoginHandlerBeanDefinitionParser {
31
32
33 public static final QName SCHEMA_TYPE = new QName(ProfileHandlerNamespaceHandler.NAMESPACE, "ExternalAuthn");
34
35
36 protected Class getBeanClass(Element arg0) {
37 return ExternalAuthnSystemLoginHandlerFactoryBean.class;
38 }
39
40
41 protected void doParse(Element config, BeanDefinitionBuilder builder) {
42 super.doParse(config, builder);
43
44 builder.addPropertyValue("externalAuthnPath",
45 DatatypeHelper.safeTrimOrNullString(config.getAttributeNS(null, "externalAuthnPath")));
46 }
47 }