Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
       xmlns:p="http://www.springframework.org/schema/p" xmlns="http://www.springframework.org/schema/beans"
4
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
5

    
6
	<bean id="sftpPubKeyCollectorPlugin" class="eu.dnetlib.data.collector.plugins.sftp.SftpPubKeyCollectorPlugin"
7
	      p:sftpIteratorFactory-ref="sftpIteratorFactory">
8
		<property name="protocolDescriptor">
9
			<bean class="eu.dnetlib.rmi.data.ProtocolDescriptor" p:name="sftpPubKeyAuthentication">
10
				<property name="params">
11
					<list>
12
						<bean class="eu.dnetlib.rmi.data.ProtocolParameter"
13
						      p:name="username" />
14
						<bean class="eu.dnetlib.rmi.data.ProtocolParameter"
15
						      p:name="recursive" p:type="BOOLEAN"/>
16
						<bean class="eu.dnetlib.rmi.data.ProtocolParameter"
17
						      p:name="extensions" p:type="LIST"/>
18
					</list>
19
				</property>
20
			</bean>
21
		</property>
22
	</bean>
23

    
24
	<bean id="sftpIteratorFactory" class="eu.dnetlib.data.collector.plugins.sftp.SftpIteratorFactory"/>
25

    
26
	<bean id="propertyConfigurer"
27
	      class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
28
		<property name="properties">
29
			<props>
30
				<prop key="collector.sftp.auth.prvKeyPath">~/.ssh/id_rsa</prop>
31
				<prop key="collector.sftp.auth.passphrase"></prop>
32
				<prop key="collector.sftp.auth.knownHostsPath">~/.ssh/known_hosts</prop>
33
			</props>
34
		</property>
35
	</bean>
36

    
37

    
38
</beans>
    (1-1/1)