Skip to content

Server Configuration Example

Markus Sabadello edited this page Sep 8, 2015 · 1 revision

The following configuration sets up an XDI endpoint that uses two SignatureValidator instances for validating signatures either via discovering an RSA public key, or by the public key embedded in the cda-1 cryptographic XDI number.

Also see AuthenticationSignatureInterceptor for more information.

<!-- MESSAGING TARGET at /graph -->

<bean id="graphFactory" class="xdi2.core.impl.memory.MemoryGraphFactory" />

<bean id="graph" factory-bean="graphFactory" factory-method="openGraph" />

<bean name="/graph" class="xdi2.messaging.target.impl.graph.GraphMessagingTarget">
	<property name="graph" ref="graph" />
	<property name="interceptors">
		<util:list>
			<bean class="xdi2.messaging.target.interceptor.impl.authentication.signature.AuthenticationSignatureInterceptor">
				<property name="signatureValidators">
					<util:list>
						<bean class="xdi2.core.security.validate.RSADiscoveryPublicKeySignatureValidator">
							<property name="xdiDiscoveryClient" ref="XdiDiscoveryClient" />
						</bean>
						<bean class="xdi2.core.security.ec25519.validate.EC25519CloudNumberPublicKeySignatureValidator" />
					</util:list>
				</property>
			</bean>
		</util:list>
	</property>
</bean>
Clone this wiki locally