| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> |
| |
| <Configure id="RPServer" class="org.eclipse.jetty.server.Server"> |
| |
| <Call class="org.eclipse.jetty.util.log.Log" name="getRootLogger"> |
| <Call name="setDebugEnabled"> |
| <Arg type="boolean">true</Arg> |
| </Call> |
| </Call> |
| |
| <New id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory"> |
| <Set name="KeyStorePath">./target/test-classes/server.jks</Set> |
| <Set name="KeyStorePassword">tompass</Set> |
| <Set name="KeyManagerPassword">tompass</Set> |
| <Set name="TrustStorePath">./target/test-classes/server.jks</Set> |
| <Set name="TrustStorePassword">tompass</Set> |
| <Set name="EndpointIdentificationAlgorithm"></Set> |
| <Set name="WantClientAuth">true</Set> |
| </New> |
| |
| <New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration"> |
| <Set name="secureScheme">https</Set> |
| <Set name="securePort"><Property name="jetty.ssl.port" default="${rp.https.port}" /></Set> |
| </New> |
| |
| <New id="sslHttpConfig" class="org.eclipse.jetty.server.HttpConfiguration"> |
| <Arg><Ref refid="httpConfig"/></Arg> |
| <Call name="addCustomizer"> |
| <Arg> |
| <New class="org.eclipse.jetty.server.SecureRequestCustomizer"> |
| </New> |
| </Arg> |
| </Call> |
| </New> |
| |
| <Call id="sslConnector" name="addConnector"> |
| <Arg> |
| <New class="org.eclipse.jetty.server.ServerConnector"> |
| <Arg name="server"><Ref refid="RPServer" /></Arg> |
| <Arg name="factories"> |
| <Array type="org.eclipse.jetty.server.ConnectionFactory"> |
| <Item> |
| <New class="org.eclipse.jetty.server.SslConnectionFactory"> |
| <Arg name="next">http/1.1</Arg> |
| <Arg name="sslContextFactory"><Ref refid="sslContextFactory"/></Arg> |
| </New> |
| </Item> |
| <Item> |
| <New class="org.eclipse.jetty.server.HttpConnectionFactory"> |
| <Arg name="config"><Ref refid="sslHttpConfig"/></Arg> |
| </New> |
| </Item> |
| </Array> |
| </Arg> |
| <Set name="host">localhost</Set> |
| <Set name="port">${rp.https.port}</Set> |
| <Set name="idleTimeout">30000</Set> |
| </New> |
| </Arg> |
| </Call> |
| |
| <Set name="handler"> |
| <New class="org.eclipse.jetty.server.handler.HandlerList"> |
| <Set name="handlers"> |
| <Array type="org.eclipse.jetty.server.Handler"> |
| <Item> |
| <New class="org.eclipse.jetty.webapp.WebAppContext"> |
| <Set name="contextPath">/fedizhelloworld</Set> |
| <Set name="war">./target/rp/fediz-systests-webapps-simple.war</Set> |
| <!--Set name="war">./target/jetty/rp/webapps/simpleWebapp</Set>--> |
| <Set name="throwUnavailableOnStartupException">true</Set> |
| |
| <Get name="securityHandler"> |
| <Set name="authenticator"> |
| <New class="org.apache.cxf.fediz.jetty9.FederationAuthenticator"> |
| <Set name="configFile">./target/test-classes/fediz_config_client_cert.xml</Set> |
| </New> |
| </Set> |
| </Get> |
| </New> |
| </Item> |
| <Item> |
| <New class="org.eclipse.jetty.webapp.WebAppContext"> |
| <Set name="contextPath">/fedizspringhelloworld</Set> |
| <Set name="war">./target/rp/fediz-systests-webapps-springPreauth.war</Set> |
| <Set name="throwUnavailableOnStartupException">true</Set> |
| |
| <Get name="securityHandler"> |
| <Set name="authenticator"> |
| <New class="org.apache.cxf.fediz.jetty9.FederationAuthenticator"> |
| <Set name="configFile">./target/test-classes/fediz_config_client_cert.xml</Set> |
| </New> |
| </Set> |
| </Get> |
| </New> |
| </Item> |
| </Array> |
| </Set> |
| </New> |
| </Set> |
| |
| <Call name="addBean"> |
| <Arg> |
| <New class="org.apache.cxf.fediz.jetty9.FederationLoginService"> |
| <Set name="name">WSFED</Set> |
| </New> |
| </Arg> |
| </Call> |
| |
| </Configure> |