Author: dkulp
Date: Thu Dec 11 14:19:40 2008
New Revision: 725842
URL: http://svn.apache.org/viewvc?rev=725842&view=rev
Log:
Fix the token URL
Modified:
cxf/sandbox/interopfest/wstrust10/src/main/java/interop/client/Client.java
cxf/sandbox/interopfest/wstrust10/src/main/resources/etc/client.xml
Modified:
cxf/sandbox/interopfest/wstrust10/src/main/java/interop/client/Client.java
URL:
http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wstrust10/src/main/java/interop/client/Client.java?rev=725842&r1=725841&r2=725842&view=diff
==============================================================================
--- cxf/sandbox/interopfest/wstrust10/src/main/java/interop/client/Client.java
(original)
+++ cxf/sandbox/interopfest/wstrust10/src/main/java/interop/client/Client.java
Thu Dec 11 14:19:40 2008
@@ -66,7 +66,8 @@
throws Exception {
if (argv.length < 2) {
argv = new String[]
{"Scenario_1_IssuedTokenOverTransport_UsernameOverTransport",
- "/etc/sts_policy_ut.xml"};
+ "/etc/sts_policy_ut.xml",
+
"https://131.107.72.15/Scenario_1_IssuedTokenOverTransport_UsernameOverTransport"};
}
Bus b = new SpringBusFactory().createBus("etc/client.xml");
@@ -87,7 +88,7 @@
STSClient stsClient = new STSClient(b);
PolicyBuilder pb = b.getExtension(PolicyBuilder.class);
stsClient.setPolicy(pb.getPolicy(Client.class.getResourceAsStream(argv[1])));
-
stsClient.setLocation("https://131.107.72.15/Security_Federation_SecurityTokenService_Indigo/Symmetric.svc/Scenario_1_IssuedTokenOverTransport_UsernameOverTransport");
+ stsClient.setLocation(argv[2]);
//TODO: get the Trust10 token out of the port
PolicyEngine pe = b.getExtension(PolicyEngine.class);
Modified: cxf/sandbox/interopfest/wstrust10/src/main/resources/etc/client.xml
URL:
http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wstrust10/src/main/resources/etc/client.xml?rev=725842&r1=725841&r2=725842&view=diff
==============================================================================
--- cxf/sandbox/interopfest/wstrust10/src/main/resources/etc/client.xml
(original)
+++ cxf/sandbox/interopfest/wstrust10/src/main/resources/etc/client.xml Thu Dec
11 14:19:40 2008
@@ -56,6 +56,16 @@
</sec:trustManagers>
</http:tlsClientParameters>
</http:conduit>
+ <http:conduit name="https://131.107.72.15/.*">
+ <http:tlsClientParameters disableCNCheck="true">
+ <sec:keyManagers keyPassword="password">
+ <sec:keyStore type="pkcs12" password="password"
resource="certs/alice.pfx"/>
+ </sec:keyManagers>
+ <sec:trustManagers>
+ <sec:keyStore type="pkcs12" password="password"
resource="certs/bob.pfx"/>
+ </sec:trustManagers>
+ </http:tlsClientParameters>
+ </http:conduit>
<!-- jaxws:client name="{http://InteropBaseAddress/interop}A_IPingService"
createdFromAPI="true">
<jaxws:properties>
<entry key="ws-security.callback-handler"
value="interop.client.KeystorePasswordCallback"/>