1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
4 Copyright © 2017 Brocade Communications Systems and others. All rights reserved.
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
10 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
11 xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0">
13 <odl:clustered-app-config
14 binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.aaa.app.config.rev170619.ShiroConfiguration"
15 id="shiroConfiguration"
16 default-config-file-name="aaa-app-config.xml"/>
18 <odl:clustered-app-config id="datastoreConfig"
19 default-config-file-name="aaa-datastore-config.xml"
20 binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.aaa.app.config.rev170619.DatastoreConfig" />
22 <reference id="authService" interface="org.opendaylight.aaa.api.AuthenticationService"/>
23 <reference id="passwordService" interface="org.opendaylight.aaa.api.password.service.PasswordHashService"/>
24 <reference id="idmStore" interface ="org.opendaylight.aaa.api.IIDMStore"/>
25 <reference id="passwordCredentialAuth" interface="org.opendaylight.aaa.api.PasswordCredentialAuth"/>
26 <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
27 <reference id="certManager" interface="org.opendaylight.aaa.cert.api.ICertificateManager"/>
28 <reference id="servletSupport" interface="org.opendaylight.aaa.web.servlet.ServletSupport"/>
30 <bean id="provider" class="org.opendaylight.aaa.AAAShiroProvider" destroy-method="close">
31 <argument ref="passwordCredentialAuth"/>
32 <argument ref="datastoreConfig"/>
33 <argument ref="idmStore"/>
36 <bean id="webEnvironment" class="org.opendaylight.aaa.shiro.web.env.AAAWebEnvironment" factory-method="create">
37 <argument ref="shiroConfiguration"/>
38 <argument ref="dataBroker"/>
39 <argument ref="certManager"/>
40 <argument ref="authService"/>
42 <bean factory-ref="provider" factory-method="getTokenAuthenticators"/>
45 <bean factory-ref="provider" factory-method="getTokenStore"/>
47 <argument ref="passwordService"/>
48 <argument ref="servletSupport"/>
50 <service ref="webEnvironment" interface="org.opendaylight.aaa.shiro.web.env.AAAShiroWebEnvironment"/>