blob: e41e3fac8dd6a8a5870e881853fb63a72cc82544 [file] [log] [blame]
Guillaume Nodet05fac962009-04-27 10:01:58 +00001<?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:util="http://www.springframework.org/schema/util"
23 xmlns:osgi="http://www.springframework.org/schema/osgi"
24 xmlns:jaas="http://servicemix.apache.org/jaas"
25 xsi:schemaLocation="
26 http://www.springframework.org/schema/beans
27 http://www.springframework.org/schema/beans/spring-beans.xsd
28 http://www.springframework.org/schema/util
29 http://www.springframework.org/schema/util/spring-util.xsd
30 http://www.springframework.org/schema/osgi
31 http://www.springframework.org/schema/osgi/spring-osgi.xsd
32 http://servicemix.apache.org/jaas
33 http://servicemix.apache.org/schema/servicemix-jaas.xsd"
34 default-autowire="no"
35 default-dependency-check="none"
36 default-init-method="init"
37 default-destroy-method="destroy">
38
39 <bean name="sshClient" class="org.apache.sshd.SshClient" factory-method="setUpDefaultClient" init-method="start" destroy-method="stop">
40 </bean>
41
42 <bean name="sshServer" class="org.apache.sshd.SshServer" factory-method="setUpDefaultServer" scope="prototype">
43 <property name="port" value="${sshPort}" />
44 <property name="shellFactory">
45 <bean class="org.apache.geronimo.gshell.commands.ssh.ShellFactoryImpl">
46 <property name="application" ref="application" />
47 <property name="completers">
48 <list>
49 <ref bean="commandsCompleter"/>
50 <ref bean="aliasNameCompleter"/>
51 </list>
52 </property>
53 <property name="executor" ref="commandLineExecutor" />
54 <property name="prompter">
55 <bean class="org.apache.geronimo.gshell.wisdom.shell.ConsolePrompterImpl">
56 <constructor-arg ref="application"/>
57 </bean>
58 </property>
59 <property name="errorHandler">
60 <bean class="org.apache.geronimo.gshell.wisdom.shell.ConsoleErrorHandlerImpl" />
61 </property>
62 <property name="history">
63 <bean class="org.apache.geronimo.gshell.wisdom.shell.HistoryImpl">
64 <constructor-arg ref="application"/>
65 </bean>
66 </property>
67 </bean>
68 </property>
Guillaume Nodet65b51e92009-06-08 19:25:20 +000069 <property name="commandFactory">
70 <bean class="org.apache.felix.karaf.gshell.core.sshd.ShellCommandFactory">
71 <property name="executor" ref="commandLineExecutor" />
72 </bean>
73 </property>
Guillaume Nodet05fac962009-04-27 10:01:58 +000074 <property name="keyPairProvider" ref="keyPairProvider" />
75 <property name="passwordAuthenticator" ref="passwordAuthenticator" />
76 </bean>
77
78 <bean name="keyPairProvider" class="org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider">
79 <property name="path" value="${hostKey}" />
80 </bean>
81 <bean name="passwordAuthenticator" class="org.apache.sshd.server.jaas.JaasPasswordAuthenticator">
82 <property name="domain" value="${sshRealm}" />
83 </bean>
84
Gert Vanthienenf54a8392009-05-02 19:57:13 +000085 <bean id="sshServerFactory" class="org.apache.felix.karaf.gshell.core.sshd.SshServerFactory" init-method="start" destroy-method="stop">
Guillaume Nodet05fac962009-04-27 10:01:58 +000086 <constructor-arg ref="sshServer" />
Chris Custine10fff852009-05-04 06:11:07 +000087 <property name="start" value="${karaf.startRemoteShell}" />
Guillaume Nodet05fac962009-04-27 10:01:58 +000088 </bean>
89
90 <!--
91 <jaas:config id="SshServer" rank="-1">
92 <jaas:module className="org.apache.geronimo.gshell.remote.server.auth.BogusLoginModule" flags="required" />
93 </jaas:config>
94 -->
95
Gert Vanthienenf54a8392009-05-02 19:57:13 +000096</beans>