@@ -40,7 +40,7 @@ The following listing shows an example configuration:
4040====
4141[source,xml]
4242----
43- <bean class="org.springframework.ws.soap.security.wss4j .Wss4jSecurityInterceptor">
43+ <bean class="org.springframework.ws.soap.security.wss4j2 .Wss4jSecurityInterceptor">
4444 <property name="validationActions" value="UsernameToken Encrypt"/>
4545 ...
4646 <property name="securementActions" value="Encrypt"/>
@@ -119,7 +119,7 @@ The following example configuration uses `CryptoFactoryBean`:
119119====
120120[source,xml]
121121----
122- <bean class="org.springframework.ws.soap.security.wss4j .support.CryptoFactoryBean">
122+ <bean class="org.springframework.ws.soap.security.wss4j2 .support.CryptoFactoryBean">
123123 <property name="keyStorePassword" value="mypassword"/>
124124 <property name="keyStoreLocation" value="file:/path_to_keystore/keystore.jks"/>
125125</bean>
@@ -146,7 +146,7 @@ You can configure it as follows:
146146[source,xml]
147147----
148148<bean id="callbackHandler"
149- class="org.springframework.ws.soap.security.wss4j .callback.SimplePasswordValidationCallbackHandler">
149+ class="org.springframework.ws.soap.security.wss4j2 .callback.SimplePasswordValidationCallbackHandler">
150150 <property name="users">
151151 <props>
152152 <prop key="Bert">Ernie</prop>
@@ -169,7 +169,7 @@ Additionally, you can set a `userCache` property, to cache loaded user details,
169169[source,xml]
170170----
171171<beans>
172- <bean class="org.springframework.ws.soap.security.wss4j .callback.SpringDigestPasswordValidationCallbackHandler">
172+ <bean class="org.springframework.ws.soap.security.wss4j2 .callback.SpringDigestPasswordValidationCallbackHandler">
173173 <property name="userDetailsService" ref="userDetailsService"/>
174174 </bean>
175175
@@ -191,7 +191,7 @@ The following example generates a username token with a digest password:
191191====
192192[source,xml]
193193----
194- <bean class="org.springframework.ws.soap.security.wss4j .Wss4jSecurityInterceptor">
194+ <bean class="org.springframework.ws.soap.security.wss4j2 .Wss4jSecurityInterceptor">
195195 <property name="securementActions" value="UsernameToken"/>
196196 <property name="securementUsername" value="Ernie"/>
197197 <property name="securementPassword" value="Bert"/>
@@ -207,7 +207,7 @@ The following example generates a username token with a plain text password, a `
207207====
208208[source,xml]
209209----
210- <bean class="org.springframework.ws.soap.security.wss4j .Wss4jSecurityInterceptor">
210+ <bean class="org.springframework.ws.soap.security.wss4j2 .Wss4jSecurityInterceptor">
211211 <property name="securementActions" value="UsernameToken"/>
212212 <property name="securementUsername" value="Ernie"/>
213213 <property name="securementPassword" value="Bert"/>
@@ -226,13 +226,13 @@ The certificate's name and password are passed through the `securementUsername`
226226====
227227[source,xml]
228228----
229- <bean class="org.springframework.ws.soap.security.wss4j .Wss4jSecurityInterceptor">
229+ <bean class="org.springframework.ws.soap.security.wss4j2 .Wss4jSecurityInterceptor">
230230 <property name="securementActions" value="Signature"/>
231231 <property name="securementSignatureKeyIdentifier" value="DirectReference"/>
232232 <property name="securementUsername" value="mycert"/>
233233 <property name="securementPassword" value="certpass"/>
234234 <property name="securementSignatureCrypto">
235- <bean class="org.springframework.ws.soap.security.wss4j .support.CryptoFactoryBean">
235+ <bean class="org.springframework.ws.soap.security.wss4j2 .support.CryptoFactoryBean">
236236 <property name="keyStorePassword" value="123456"/>
237237 <property name="keyStoreLocation" value="classpath:/keystore.jks"/>
238238 </bean>
@@ -246,10 +246,10 @@ For the certificate validation, regular signature validation applies:
246246====
247247[source,xml]
248248----
249- <bean class="org.springframework.ws.soap.security.wss4j .Wss4jSecurityInterceptor">
249+ <bean class="org.springframework.ws.soap.security.wss4j2 .Wss4jSecurityInterceptor">
250250 <property name="validationActions" value="Signature"/>
251251 <property name="validationSignatureCrypto">
252- <bean class="org.springframework.ws.soap.security.wss4j .support.CryptoFactoryBean">
252+ <bean class="org.springframework.ws.soap.security.wss4j2 .support.CryptoFactoryBean">
253253 <property name="keyStorePassword" value="123456"/>
254254 <property name="keyStoreLocation" value="classpath:/keystore.jks"/>
255255 </bean>
@@ -278,7 +278,7 @@ In the following example, the interceptor limits the timestamp validity window t
278278====
279279[source,xml]
280280----
281- <bean class="org.springframework.ws.soap.security.wss4j .Wss4jSecurityInterceptor">
281+ <bean class="org.springframework.ws.soap.security.wss4j2 .Wss4jSecurityInterceptor">
282282 <property name="validationActions" value="Timestamp"/>
283283 <property name="timestampStrict" value="true"/>
284284 <property name="timeToLive" value="10"/>
@@ -297,7 +297,7 @@ The following listing adds a timestamp:
297297====
298298[source,xml]
299299----
300- <bean class="org.springframework.ws.soap.security.wss4j .Wss4jSecurityInterceptor">
300+ <bean class="org.springframework.ws.soap.security.wss4j2 .Wss4jSecurityInterceptor">
301301 <property name="securementActions" value="Timestamp"/>
302302 <property name="timestampPrecisionInMilliseconds" value="true"/>
303303</bean>
@@ -317,10 +317,10 @@ Additionally, the `validationSignatureCrypto` property must point to the keystor
317317====
318318[source,xml]
319319----
320- <bean id="wsSecurityInterceptor" class="org.springframework.ws.soap.security.wss4j .Wss4jSecurityInterceptor">
320+ <bean id="wsSecurityInterceptor" class="org.springframework.ws.soap.security.wss4j2 .Wss4jSecurityInterceptor">
321321 <property name="validationActions" value="Signature"/>
322322 <property name="validationSignatureCrypto">
323- <bean class="org.springframework.ws.soap.security.wss4j .support.CryptoFactoryBean">
323+ <bean class="org.springframework.ws.soap.security.wss4j2 .support.CryptoFactoryBean">
324324 <property name="keyStorePassword" value="123456"/>
325325 <property name="keyStoreLocation" value="classpath:/keystore.jks"/>
326326 </bean>
@@ -337,12 +337,12 @@ The alias and the password of the private key to use are specified by the `secur
337337====
338338[source,xml]
339339----
340- <bean class="org.springframework.ws.soap.security.wss4j .Wss4jSecurityInterceptor">
340+ <bean class="org.springframework.ws.soap.security.wss4j2 .Wss4jSecurityInterceptor">
341341 <property name="securementActions" value="Signature"/>
342342 <property name="securementUsername" value="mykey"/>
343343 <property name="securementPassword" value="123456"/>
344344 <property name="securementSignatureCrypto">
345- <bean class="org.springframework.ws.soap.security.wss4j .support.CryptoFactoryBean">
345+ <bean class="org.springframework.ws.soap.security.wss4j2 .support.CryptoFactoryBean">
346346 <property name="keyStorePassword" value="123456"/>
347347 <property name="keyStoreLocation" value="classpath:/keystore.jks"/>
348348 </bean>
@@ -386,11 +386,11 @@ The following example sets the `enableSignatureConfirmation` property to `true`:
386386====
387387[source,xml]
388388----
389- <bean class="org.springframework.ws.soap.security.wss4j .Wss4jSecurityInterceptor">
389+ <bean class="org.springframework.ws.soap.security.wss4j2 .Wss4jSecurityInterceptor">
390390 <property name="validationActions" value="Signature"/>
391391 <property name="enableSignatureConfirmation" value="true"/>
392392 <property name="validationSignatureCrypto">
393- <bean class="org.springframework.ws.soap.security.wss4j .support.CryptoFactoryBean">
393+ <bean class="org.springframework.ws.soap.security.wss4j2 .support.CryptoFactoryBean">
394394 <property name="keyStorePassword" value="123456"/>
395395 <property name="keyStoreLocation" value="file:/keystore.jks"/>
396396 </bean>
0 commit comments