[CXF-7519] The cxf-rt-transports-http-jetty should not rely on the old blueprint...
[cxf.git] / systests / rs-security / src / test / java / org / apache / cxf / systest / jaxrs / security / samlsso / metadata-server.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with 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,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19 -->
20 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:http="http://cxf.apache.org/transports/http/configuration" xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration" xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:cxf="http://cxf.apache.org/core" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://cxf.apache.org/transports/http-jetty/configuration http://cxf.apache.org/schemas/configuration/http-jetty.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd ">
21 <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
22 <cxf:bus>
23 <cxf:features>
24 <cxf:logging/>
25 </cxf:features>
26 </cxf:bus>
27 <httpj:engine-factory id="port-9095-tls-config">
28 <httpj:engine port="${testutil.ports.jaxrs-saml}">
29 <httpj:tlsServerParameters>
30 <sec:keyManagers keyPassword="password">
31 <sec:keyStore type="JKS" password="password" file="src/test/java/org/apache/cxf/systest/http/resources/Bethal.jks"/>
32 </sec:keyManagers>
33 <sec:trustManagers>
34 <sec:keyStore type="JKS" password="password" file="src/test/java/org/apache/cxf/systest/http/resources/Truststore.jks"/>
35 </sec:trustManagers>
36 <sec:clientAuthentication want="true" required="true"/>
37 </httpj:tlsServerParameters>
38 </httpj:engine>
39 </httpj:engine-factory>
40
41 <bean id="metadataBean" class="org.apache.cxf.rs.security.saml.sso.MetadataService">
42 <property name="serviceAddress"
43 value="https://localhost:${testutil.ports.jaxrs-saml}/saml-roles"/>
44 <property name="assertionConsumerServiceAddress"
45 value="https://localhost:${testutil.ports.jaxrs-saml}/saml-roles"/>
46 <property name="logoutServiceAddress"
47 value="https://localhost:${testutil.ports.jaxrs-saml}/sso/logout"/>
48 <property name="signatureUsername" value="alice"/>
49 <property name="signaturePropertiesFile"
50 value="org/apache/cxf/systest/jaxrs/security/alice.properties"/>
51 <property name="callbackHandlerClass"
52 value="org.apache.cxf.systest.jaxrs.security.samlsso.KeystorePasswordCallback"/>
53 </bean>
54
55 <jaxrs:server address="https://localhost:${testutil.ports.jaxrs-saml}/sso"
56 depends-on="port-9095-tls-config" >
57 <jaxrs:serviceBeans>
58 <ref bean="metadataBean"/>
59 </jaxrs:serviceBeans>
60 </jaxrs:server>
61
62 </beans>