fix use right types in matcher-secrity.xml
<bean id="predefinedAliasStrategy" class="won.cryptography.ssl.PredefinedAliasPrivateKeyStrategy">
<constructor-arg value="${matcher.uri}" />
</bean>
+
<bean id="registrationClient" class="won.cryptography.service.RegistrationRestClientHttps">
<constructor-arg ref="keyStoreService" />
- <constructor-arg ref="predefinedAliasStrategy"/>
+ <constructor-arg name="privateKeyStrategy" ref="predefinedAliasStrategy" />
<constructor-arg ref="trustStoreService" />
<constructor-arg>
<bean class="won.cryptography.ssl.TOFUStrategy">
<property name="trustStoreService" ref="trustStoreService" />
</bean>
</constructor-arg>
- <property name="registrationQuery" value="?register=node"></property>
+ <constructor-arg name="registrationQuery" value="?register=owner" />
+ </bean>
+
+ <bean id="keyPairAliasDerivationStrategyFactory"
+ class="won.cryptography.keymanagement.KeyPairAliasDerivationStrategyFactory">
+ <property name="predefinedAlias" value="${matcher.uri}" />
</bean>
+
<bean id="linkedDataRestClient" class="won.protocol.rest.LinkedDataRestClientHttps">
<constructor-arg ref="keyStoreService"/>
<constructor-arg ref="trustStoreService"/>
<constructor-arg name ="trustStrategy">
<bean class="won.cryptography.ssl.TrustAnyCertificateStrategy" />
</constructor-arg>
- <constructor-arg name="keyPairAliasDerivationStrategy" ref="predefinedAliasStrategy" />
+ <constructor-arg name="keyPairAliasDerivationStrategy">
+ <bean factory-bean="keyPairAliasDerivationStrategyFactory"
+ factory-method="create" />
+ </constructor-arg>
</bean>
<bean id="messagingContext" class="won.cryptography.ssl.MessagingContext" >
<constructor-arg ref="keyStoreService"/>
