Skip to content

Commit 16d0a8f

Browse files
committed
Now using WSS4J for authentication on the airline client sample
1 parent 9695716 commit 16d0a8f

File tree

3 files changed

+26
-116
lines changed

3 files changed

+26
-116
lines changed

parent/pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,28 @@
572572
<groupId>org.apache.ws.security</groupId>
573573
<artifactId>wss4j</artifactId>
574574
<version>1.5.4</version>
575+
<exclusions>
576+
<exclusion>
577+
<groupId>axis</groupId>
578+
<artifactId>axis</artifactId>
579+
</exclusion>
580+
<exclusion>
581+
<groupId>axis</groupId>
582+
<artifactId>axis-ant</artifactId>
583+
</exclusion>
584+
<exclusion>
585+
<groupId>xerces</groupId>
586+
<artifactId>xercecImpl</artifactId>
587+
</exclusion>
588+
<exclusion>
589+
<groupId>xml-apis</groupId>
590+
<artifactId>xml-apis</artifactId>
591+
</exclusion>
592+
<exclusion>
593+
<groupId>junit</groupId>
594+
<artifactId>junit</artifactId>
595+
</exclusion>
596+
</exclusions>
575597
</dependency>
576598
<dependency>
577599
<groupId>org.acegisecurity</groupId>

samples/airline/client/spring-ws/src/org/springframework/ws/samples/airline/client/sws/AirlineClient.java

Lines changed: 0 additions & 105 deletions
This file was deleted.

samples/airline/client/spring-ws/src/org/springframework/ws/samples/airline/client/sws/applicationContext.xml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,10 @@
2121
<property name="interceptors" ref="securityInterceptor"/>
2222
</bean>
2323

24-
25-
<bean id="securityInterceptor" class="org.springframework.ws.soap.security.xwss.XwsSecurityInterceptor">
26-
<property name="policyConfiguration"
27-
value="classpath:org/springframework/ws/samples/airline/client/sws/securityPolicy.xml"/>
28-
<property name="callbackHandler">
29-
<bean class="org.springframework.ws.soap.security.xwss.callback.SimpleUsernamePasswordCallbackHandler">
30-
<property name="username" value="john"/>
31-
<property name="password" value="changeme"/>
32-
</bean>
33-
</property>
24+
<bean id="securityInterceptor" class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor">
25+
<property name="securementActions" value="UsernameToken"/>
26+
<property name="securementUsername" value="john"/>
27+
<property name="securementPassword" value="changeme"/>
3428
</bean>
3529

36-
3730
</beans>

0 commit comments

Comments
 (0)