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