Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | |
| 4 | Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 | contributor license agreements. See the NOTICE file distributed with |
| 6 | this work for additional information regarding copyright ownership. |
| 7 | The ASF licenses this file to You under the Apache License, Version 2.0 |
| 8 | (the "License"); you may not use this file except in compliance with |
| 9 | the License. You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | |
| 19 | --> |
| 20 | <beans xmlns="http://www.springframework.org/schema/beans" |
| 21 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xmlns:osgi="http://www.springframework.org/schema/osgi" |
| 23 | xmlns:util="http://www.springframework.org/schema/util" |
| 24 | xsi:schemaLocation=" |
| 25 | http://www.springframework.org/schema/beans |
| 26 | http://www.springframework.org/schema/beans/spring-beans.xsd |
| 27 | http://www.springframework.org/schema/util |
| 28 | http://www.springframework.org/schema/util/spring-util.xsd |
| 29 | http://www.springframework.org/schema/osgi |
| 30 | http://www.springframework.org/schema/osgi/spring-osgi.xsd"> |
| 31 | |
| 32 | <bean id="config" |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 33 | class="org.apache.felix.karaf.jaas.config.impl.OsgiConfiguration" |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 34 | init-method="init" |
| 35 | destroy-method="close"/> |
| 36 | |
| 37 | <osgi:list id="realms" |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 38 | interface="org.apache.felix.karaf.jaas.config.JaasRealm" |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 39 | cardinality="0..N"> |
| 40 | <osgi:listener ref="config" bind-method="register" unbind-method="unregister" /> |
| 41 | </osgi:list> |
| 42 | |
| 43 | <bean id="proxyLoginModuleInitializer" |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 44 | class="org.apache.felix.karaf.jaas.config.impl.ProxyLoginModuleInitializer" |
Guillaume Nodet | 21d6398 | 2009-05-04 07:06:20 +0000 | [diff] [blame^] | 45 | init-method="init"> |
| 46 | <property name="bundleContext" ref="bundleContext"/> |
| 47 | </bean> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 48 | |
| 49 | <!-- Register the Straight-Through flow --> |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 50 | <bean id="keystoreManager" class="org.apache.felix.karaf.jaas.config.impl.OsgiKeystoreManager" /> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 51 | <osgi:service ref="keystoreManager"> |
| 52 | <osgi:interfaces> |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 53 | <value>org.apache.felix.karaf.jaas.config.KeystoreManager</value> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 54 | </osgi:interfaces> |
| 55 | </osgi:service> |
| 56 | |
| 57 | <osgi:list id="keystores" |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 58 | interface="org.apache.felix.karaf.jaas.config.KeystoreInstance" |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 59 | cardinality="0..N"> |
| 60 | <osgi:listener ref="keystoreManager" bind-method="register" unbind-method="unregister" /> |
| 61 | </osgi:list> |
| 62 | |
| 63 | </beans> |