This is an automated email from the ASF dual-hosted git repository.
ffang pushed a commit to branch 4.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/4.1.x-fixes by this push:
new b0e99e61fa9 Apply the WSS4J SAML checks in the STS token validators
(#3792)
b0e99e61fa9 is described below
commit b0e99e61fa9151c9d8a0ad551010992cad4f47b3
Author: Freeman(Yue) Fang <[email protected]>
AuthorDate: Mon Nov 30 14:51:18 2026 -0500
Apply the WSS4J SAML checks in the STS token validators (#3792)
* Apply the WSS4J SAML checks in the STS token validators
STSStaxTokenValidator validates a SAML assertion with its own copy of an
old version of
SamlTokenValidatorImpl.validate(). It did not check the audience
restrictions, the AuthnStatements or
the Subject Confirmation requirements, and it cached the OneTimeUse ID
before the other checks. It now
makes the same checks as SamlTokenValidatorImpl, in the same order.
STSSamlAssertionValidator lets SamlAssertionValidator go on when the
signature of an assertion is not
trusted locally, so that STSTokenValidator can validate the assertion with
the STS. The OneTimeUse ID of
such an assertion was cached before the STS validated it, so an assertion
that the STS rejects could
take the ID of a genuine one. It is now only cached once the STS has
validated the assertion.
* Cache the OneTimeUse ID only once the STS token validators have validated
an assertion
STSTokenValidator now checks the OneTimeUse Condition itself, once the
assertion has been validated
locally or by the STS, including with alwaysValidateToSts, where it was
never checked. This no longer
depends on the order in which SamlAssertionValidator calls
verifySignedAssertion and checkOneTimeUse.
With alwaysValidateToSts, STSStaxTokenValidator again leaves the validation
of the assertion to the STS,
as STSTokenValidator(true) does, and checks the OneTimeUse Condition after
the STS has validated it.
The tests now go through STSTokenValidator.validate with an STS that
accepts or rejects the assertion,
and the audience tests have a positive control.
(cherry picked from commit 6fb2f2452bebffde7976a786a1b44525acb7942c)
---
.../security/trust/STSSamlAssertionValidator.java | 21 +++
.../ws/security/trust/STSStaxTokenValidator.java | 51 +++++---
.../cxf/ws/security/trust/STSTokenValidator.java | 12 +-
.../ws/security/trust/STSTokenValidatorTest.java | 143 +++++++++++++++++++++
.../ws/security/wss4j/saml/DOMToStaxSamlTest.java | 87 +++++++++++++
5 files changed, 294 insertions(+), 20 deletions(-)
diff --git
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSSamlAssertionValidator.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSSamlAssertionValidator.java
index 662849baa80..5cc53c94767 100644
---
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSSamlAssertionValidator.java
+++
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSSamlAssertionValidator.java
@@ -64,6 +64,27 @@ public class STSSamlAssertionValidator extends
SamlAssertionValidator {
}
}
+ /**
+ * The OneTimeUse Condition is not checked here. STSTokenValidator checks
it with checkOneTimeUseCondition
+ * once the assertion has been validated, locally or by the STS, as
caching the ID of an assertion that is
+ * then rejected (e.g. one whose signature is not trusted locally and that
the STS rejects) would let an
+ * attacker poison the cache against a genuine assertion with the same ID.
This also does not depend on
+ * whether SamlAssertionValidator calls checkOneTimeUse before or after
verifySignedAssertion.
+ */
+ @Override
+ protected void checkOneTimeUse(SamlAssertionWrapper samlAssertion,
RequestData data)
+ throws WSSecurityException {
+ // checked by STSTokenValidator once the assertion has been validated
+ }
+
+ /**
+ * Check the OneTimeUse Condition of an assertion once it has been
validated, locally or by the STS
+ */
+ public void checkOneTimeUseCondition(SamlAssertionWrapper samlAssertion,
RequestData data)
+ throws WSSecurityException {
+ super.checkOneTimeUse(samlAssertion, data);
+ }
+
/**
* Return if trust verification on the signature of the assertion
succeeded.
* @return if trust verification on the signature of the assertion
succeeded
diff --git
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSStaxTokenValidator.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSStaxTokenValidator.java
index 57d65082602..293d825d25f 100644
---
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSStaxTokenValidator.java
+++
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSStaxTokenValidator.java
@@ -99,33 +99,48 @@ public class STSStaxTokenValidator
final SamlAssertionWrapper
samlAssertionWrapper,
final InboundSecurityToken
subjectSecurityToken,
final TokenContext
tokenContext) throws WSSecurityException {
- // Check conditions
- checkConditions(samlAssertionWrapper);
+ final SoapMessage message =
+
(SoapMessage)tokenContext.getWssSecurityProperties().getMsgContext();
+
+ final boolean stsValidated;
+ if (alwaysValidateToSts) {
+ // The STS validates the assertion, as with
STSTokenValidator(true), so only its validity period and
+ // its schema are checked locally
+ checkConditions(samlAssertionWrapper);
+ validateAssertion(samlAssertionWrapper);
+
+ validateTokenToSTS(samlAssertionWrapper.getElement(), message);
+ stsValidated = true;
+ } else {
+ // Check conditions, including the audience restrictions
+ checkConditions(samlAssertionWrapper,
+
tokenContext.getWssSecurityProperties().getAudienceRestrictions());
- // Check OneTimeUse Condition
+ // Check the AuthnStatements of the assertion (if any)
+ checkAuthnStatements(samlAssertionWrapper);
+
+ // Check the Subject Confirmation requirements
+ verifySubjectConfirmationMethod(samlAssertionWrapper);
+
+ // Validate the assertion against schemas/profiles
+ validateAssertion(samlAssertionWrapper);
+ stsValidated = false;
+ }
+
+ // Check OneTimeUse Condition. This must come after the other checks,
and after the STS has validated the
+ // assertion, as it caches the Assertion ID, and caching the ID of an
Assertion that is then rejected
+ // would let an attacker poison the cache against a genuine Assertion
with the same ID. WSS4J has already
+ // verified the signature of the assertion and the trust of its issuer
before calling this validator.
+ // verify() below only checks the trust of the subject's key, and is
only called when the token is used
+ // for a signature, so this check can not be moved there without
losing it for other assertions.
checkOneTimeUse(samlAssertionWrapper,
tokenContext.getWssSecurityProperties().getSamlOneTimeUseReplayCache());
- // Validate the assertion against schemas/profiles
- validateAssertion(samlAssertionWrapper);
-
Crypto sigVerCrypto = null;
if (samlAssertionWrapper.isSigned()) {
sigVerCrypto =
tokenContext.getWssSecurityProperties().getSignatureVerificationCrypto();
}
- final SoapMessage message =
-
(SoapMessage)tokenContext.getWssSecurityProperties().getMsgContext();
-
- // Validate to STS if required
- boolean valid = false;
- if (alwaysValidateToSts) {
- Element tokenElement = samlAssertionWrapper.getElement();
- validateTokenToSTS(tokenElement, message);
- valid = true;
- }
- final boolean stsValidated = valid;
-
SamlSecurityTokenImpl securityToken = new SamlSecurityTokenImpl(
samlAssertionWrapper, subjectSecurityToken,
tokenContext.getWsSecurityContext(),
diff --git
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSTokenValidator.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSTokenValidator.java
index 6c62d267150..7a80075798a 100644
---
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSTokenValidator.java
+++
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSTokenValidator.java
@@ -72,11 +72,19 @@ public class STSTokenValidator implements Validator {
public Credential validate(Credential credential, RequestData data) throws
WSSecurityException {
+ final Credential validatedCredential;
if (isValidatedLocally(credential, data)) {
- return credential;
+ validatedCredential = credential;
+ } else {
+ validatedCredential = validateWithSTS(credential,
(Message)data.getMsgContext());
}
- return validateWithSTS(credential, (Message)data.getMsgContext());
+ // The OneTimeUse ID of an assertion is only cached once the assertion
has been validated, locally or by
+ // the STS, so that an assertion that is rejected can not take the ID
of a genuine one
+ if (credential.getSamlAssertion() != null) {
+ new
STSSamlAssertionValidator().checkOneTimeUseCondition(credential.getSamlAssertion(),
data);
+ }
+ return validatedCredential;
}
public Credential validateWithSTS(Credential credential, Message message)
throws WSSecurityException {
diff --git
a/rt/ws/security/src/test/java/org/apache/cxf/ws/security/trust/STSTokenValidatorTest.java
b/rt/ws/security/src/test/java/org/apache/cxf/ws/security/trust/STSTokenValidatorTest.java
index fdab35bde4d..a2f88046693 100644
---
a/rt/ws/security/src/test/java/org/apache/cxf/ws/security/trust/STSTokenValidatorTest.java
+++
b/rt/ws/security/src/test/java/org/apache/cxf/ws/security/trust/STSTokenValidatorTest.java
@@ -18,6 +18,7 @@
*/
package org.apache.cxf.ws.security.trust;
+import java.util.UUID;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
@@ -28,12 +29,17 @@ import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.apache.cxf.helpers.DOMUtils;
+import org.apache.cxf.message.Message;
import org.apache.cxf.ws.security.wss4j.saml.SAML2CallbackHandler;
+import org.apache.wss4j.common.cache.MemoryReplayCache;
+import org.apache.wss4j.common.cache.ReplayCache;
import org.apache.wss4j.common.crypto.Crypto;
import org.apache.wss4j.common.crypto.CryptoFactory;
+import org.apache.wss4j.common.ext.WSSecurityException;
import org.apache.wss4j.common.saml.SAMLCallback;
import org.apache.wss4j.common.saml.SAMLUtil;
import org.apache.wss4j.common.saml.SamlAssertionWrapper;
+import org.apache.wss4j.common.saml.bean.ConditionsBean;
import org.apache.wss4j.dom.engine.WSSConfig;
import org.apache.wss4j.dom.handler.RequestData;
import org.apache.wss4j.dom.saml.WSSSAMLKeyInfoProcessor;
@@ -42,14 +48,18 @@ import org.apache.wss4j.dom.validate.Credential;
import org.junit.BeforeClass;
import org.junit.Test;
+import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
/**
* Tests for local validation of SAML Assertions in the STSTokenValidator.
*/
public class STSTokenValidatorTest {
+ private static final String STS_REJECTED = "rejected by the STS";
+
private static Crypto signingCrypto;
private static Crypto trustedCrypto;
private static Crypto untrustedCrypto;
@@ -134,6 +144,101 @@ public class STSTokenValidatorTest {
}
}
+ /**
+ * The OneTimeUse ID of an Assertion that is trusted locally is cached, so
it can not be replayed.
+ */
+ @Test
+ public void testOneTimeUseLocallyTrustedAssertion() throws Exception {
+ STSTokenValidator validator = new StubSTSTokenValidator(false, false);
+ RequestData data = createRequestData(trustedCrypto, new
MemoryReplayCache());
+ Credential credential = createCredential(true, data, "_" +
UUID.randomUUID());
+
+ validator.validate(credential, data);
+ assertReplayRejected(validator, credential, data);
+ data.getSamlOneTimeUseReplayCache().close();
+ }
+
+ /**
+ * An Assertion whose signature is not trusted locally is passed on to the
STS. Its OneTimeUse ID must not
+ * be cached if the STS rejects it: otherwise an attacker could send an
Assertion signed with an untrusted
+ * key that carries the ID of a genuine one, so that the genuine Assertion
is then rejected as a replay.
+ */
+ @Test
+ public void testOneTimeUseNotCachedWhenSTSRejects() throws Exception {
+ ReplayCache replayCache = new MemoryReplayCache();
+ String id = "_" + UUID.randomUUID();
+
+ RequestData untrustedData = createRequestData(untrustedCrypto,
replayCache);
+ try {
+ new StubSTSTokenValidator(false,
false).validate(createCredential(true, untrustedData, id),
+ untrustedData);
+ fail("Expected the STS to reject the Assertion");
+ } catch (WSSecurityException ex) {
+ assertEquals(STS_REJECTED, ex.getMessage());
+ }
+
+ // The genuine Assertion is accepted, and is cached so that it can not
be replayed
+ STSTokenValidator validator = new StubSTSTokenValidator(false, false);
+ RequestData trustedData = createRequestData(trustedCrypto,
replayCache);
+ Credential credential = createCredential(true, trustedData, id);
+ validator.validate(credential, trustedData);
+ assertReplayRejected(validator, credential, trustedData);
+ replayCache.close();
+ }
+
+ /**
+ * The OneTimeUse ID of an Assertion that is not trusted locally is cached
once the STS has validated it.
+ */
+ @Test
+ public void testOneTimeUseCachedWhenSTSValidates() throws Exception {
+ STSTokenValidator validator = new StubSTSTokenValidator(false, true);
+ RequestData data = createRequestData(untrustedCrypto, new
MemoryReplayCache());
+ Credential credential = createCredential(true, data, "_" +
UUID.randomUUID());
+
+ validator.validate(credential, data);
+ assertReplayRejected(validator, credential, data);
+ data.getSamlOneTimeUseReplayCache().close();
+ }
+
+ /**
+ * With alwaysValidateToSts, the OneTimeUse ID is cached once the STS has
validated the Assertion, and not
+ * if the STS rejects it.
+ */
+ @Test
+ public void testOneTimeUseAlwaysValidateToSts() throws Exception {
+ ReplayCache replayCache = new MemoryReplayCache();
+ RequestData data = createRequestData(trustedCrypto, replayCache);
+ Credential credential = createCredential(true, data, "_" +
UUID.randomUUID());
+
+ try {
+ new StubSTSTokenValidator(true, false).validate(credential, data);
+ fail("Expected the STS to reject the Assertion");
+ } catch (WSSecurityException ex) {
+ assertEquals(STS_REJECTED, ex.getMessage());
+ }
+
+ STSTokenValidator validator = new StubSTSTokenValidator(true, true);
+ validator.validate(credential, data);
+ assertReplayRejected(validator, credential, data);
+ replayCache.close();
+ }
+
+ private static void assertReplayRejected(STSTokenValidator validator,
Credential credential, RequestData data)
+ throws Exception {
+ try {
+ validator.validate(credential, data);
+ fail("Expected failure on a replayed OneTimeUse Assertion");
+ } catch (WSSecurityException ex) {
+ assertEquals(WSSecurityException.ErrorCode.INVALID_SECURITY,
ex.getErrorCode());
+ }
+ }
+
+ private static RequestData createRequestData(Crypto sigVerCrypto,
ReplayCache replayCache) {
+ RequestData data = createRequestData(sigVerCrypto);
+ data.setSamlOneTimeUseReplayCache(replayCache);
+ return data;
+ }
+
private static RequestData createRequestData(Crypto sigVerCrypto) {
RequestData data = new RequestData();
data.setSigVerCrypto(sigVerCrypto);
@@ -142,10 +247,27 @@ public class STSTokenValidatorTest {
}
private static Credential createCredential(boolean signed, RequestData
data) throws Exception {
+ return createCredential(signed, data, null);
+ }
+
+ /**
+ * Create a Credential holding an Assertion, a OneTimeUse Assertion with
the given ID if it is not null
+ */
+ private static Credential createCredential(boolean signed, RequestData
data, String oneTimeUseId)
+ throws Exception {
SAML2CallbackHandler callbackHandler = new SAML2CallbackHandler();
SAMLCallback samlCallback = new SAMLCallback();
SAMLUtil.doSAMLCallback(callbackHandler, samlCallback);
+ if (oneTimeUseId != null) {
+ ConditionsBean conditions = new ConditionsBean();
+ conditions.setTokenPeriodMinutes(5);
+ conditions.setOneTimeUse(true);
+ samlCallback.setConditions(conditions);
+ }
SamlAssertionWrapper assertion = new
SamlAssertionWrapper(samlCallback);
+ if (oneTimeUseId != null) {
+ assertion.getSaml2().setID(oneTimeUseId);
+ }
if (signed) {
assertion.signAssertion("myalias", "myAliasPassword",
signingCrypto, false);
}
@@ -164,4 +286,25 @@ public class STSTokenValidatorTest {
credential.setSamlAssertion(receivedAssertion);
return credential;
}
+
+ /**
+ * An STSTokenValidator whose STS accepts or rejects every token
+ */
+ private static final class StubSTSTokenValidator extends STSTokenValidator
{
+ private final boolean stsAccepts;
+
+ StubSTSTokenValidator(boolean alwaysValidateToSts, boolean stsAccepts)
{
+ super(alwaysValidateToSts);
+ this.stsAccepts = stsAccepts;
+ }
+
+ @Override
+ public Credential validateWithSTS(Credential credential, Message
message) throws WSSecurityException {
+ if (!stsAccepts) {
+ throw new
WSSecurityException(WSSecurityException.ErrorCode.FAILURE, "empty",
+ new Object[] {STS_REJECTED});
+ }
+ return credential;
+ }
+ }
}
diff --git
a/rt/ws/security/src/test/java/org/apache/cxf/ws/security/wss4j/saml/DOMToStaxSamlTest.java
b/rt/ws/security/src/test/java/org/apache/cxf/ws/security/wss4j/saml/DOMToStaxSamlTest.java
index 1c151bb06ec..4687017c5c6 100644
---
a/rt/ws/security/src/test/java/org/apache/cxf/ws/security/wss4j/saml/DOMToStaxSamlTest.java
+++
b/rt/ws/security/src/test/java/org/apache/cxf/ws/security/wss4j/saml/DOMToStaxSamlTest.java
@@ -18,10 +18,15 @@
*/
package org.apache.cxf.ws.security.wss4j.saml;
+import java.io.IOException;
+import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.endpoint.Server;
import org.apache.cxf.ext.logging.LoggingInInterceptor;
@@ -31,6 +36,8 @@ import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
import org.apache.cxf.jaxws.JaxWsServerFactoryBean;
import org.apache.cxf.service.Service;
import org.apache.cxf.transport.local.LocalTransportFactory;
+import org.apache.cxf.ws.security.SecurityConstants;
+import org.apache.cxf.ws.security.trust.STSStaxTokenValidator;
import org.apache.cxf.ws.security.wss4j.AbstractSecurityTest;
import org.apache.cxf.ws.security.wss4j.Echo;
import org.apache.cxf.ws.security.wss4j.EchoImpl;
@@ -38,10 +45,14 @@ import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor;
import org.apache.cxf.ws.security.wss4j.WSS4JStaxInInterceptor;
import org.apache.wss4j.common.ConfigurationConstants;
import org.apache.wss4j.common.crypto.CryptoFactory;
+import org.apache.wss4j.common.saml.SAMLCallback;
+import org.apache.wss4j.common.saml.bean.AudienceRestrictionBean;
+import org.apache.wss4j.common.saml.bean.ConditionsBean;
import org.apache.wss4j.common.saml.builder.SAML1Constants;
import org.apache.wss4j.common.saml.builder.SAML2Constants;
import org.apache.wss4j.dom.WSConstants;
import org.apache.wss4j.stax.ext.WSSSecurityProperties;
+import org.apache.wss4j.stax.validate.SamlTokenValidatorImpl;
import org.junit.Test;
@@ -53,6 +64,8 @@ import static org.junit.Assert.fail;
*/
public class DOMToStaxSamlTest extends AbstractSecurityTest {
+ private static final String SERVICE_AUDIENCE = "https://localhost/Echo";
+
@Test
public void testSaml1() throws Exception {
// Create + configure service
@@ -288,6 +301,80 @@ public class DOMToStaxSamlTest extends
AbstractSecurityTest {
}
+ @Test
+ public void testSaml2WrongAudienceDefaultValidator() throws Exception {
+ assertWrongAudienceRejected(new SamlTokenValidatorImpl());
+ }
+
+ @Test
+ public void testSaml2WrongAudienceSTSStaxTokenValidator() throws Exception
{
+ assertWrongAudienceRejected(new STSStaxTokenValidator());
+ }
+
+ @Test
+ public void testSaml2AudienceDefaultValidator() throws Exception {
+ assertEquals("test", createAudienceClient(new
SamlTokenValidatorImpl(), SERVICE_AUDIENCE).echo("test"));
+ }
+
+ @Test
+ public void testSaml2AudienceSTSStaxTokenValidator() throws Exception {
+ assertEquals("test", createAudienceClient(new STSStaxTokenValidator(),
SERVICE_AUDIENCE).echo("test"));
+ }
+
+ private void assertWrongAudienceRejected(SamlTokenValidatorImpl validator)
throws Exception {
+ Echo echo = createAudienceClient(validator,
"https://other.example.com/service");
+ try {
+ echo.echo("test");
+ fail("Failure expected on an Assertion with the wrong audience");
+ } catch (jakarta.xml.ws.soap.SOAPFaultException ex) {
+ // expected
+ }
+ }
+
+ /**
+ * Create a client that sends a signed Assertion with the given audience
to a service that validates it with
+ * the given validator, and that accepts the SERVICE_AUDIENCE audience
+ */
+ private Echo createAudienceClient(SamlTokenValidatorImpl validator, String
audience) throws Exception {
+ Service service = createService();
+
+ WSSSecurityProperties inProperties = new WSSSecurityProperties();
+ Properties cryptoProperties =
+ CryptoFactory.getProperties("insecurity.properties",
this.getClass().getClassLoader());
+
inProperties.setSignatureVerificationCryptoProperties(cryptoProperties);
+ inProperties.addValidator(WSConstants.SAML_TOKEN, validator);
+ inProperties.addValidator(WSConstants.SAML2_TOKEN, validator);
+ service.put(SecurityConstants.AUDIENCE_RESTRICTIONS, SERVICE_AUDIENCE);
+ service.getInInterceptors().add(new
WSS4JStaxInInterceptor(inProperties));
+
+ Echo echo = createClientProxy();
+ Client client = ClientProxy.getClient(echo);
+
+ SAML2CallbackHandler callbackHandler = new SAML2CallbackHandler() {
+ @Override
+ public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
+ super.handle(callbacks);
+ ConditionsBean conditions = new ConditionsBean();
+ conditions.setTokenPeriodMinutes(5);
+ AudienceRestrictionBean audienceRestriction = new
AudienceRestrictionBean();
+
audienceRestriction.setAudienceURIs(Collections.singletonList(audience));
+
conditions.setAudienceRestrictions(Collections.singletonList(audienceRestriction));
+ ((SAMLCallback) callbacks[0]).setConditions(conditions);
+ }
+ };
+ callbackHandler.setSignAssertion(true);
+
+ Map<String, Object> properties = new HashMap<>();
+ properties.put(ConfigurationConstants.ACTION,
ConfigurationConstants.SAML_TOKEN_SIGNED);
+ properties.put(ConfigurationConstants.SAML_CALLBACK_REF,
callbackHandler);
+ properties.put(ConfigurationConstants.SIG_KEY_ID, "DirectReference");
+ properties.put(ConfigurationConstants.USER, "alice");
+ properties.put(ConfigurationConstants.PW_CALLBACK_REF, new
PasswordCallbackHandler());
+ properties.put(ConfigurationConstants.SIG_PROP_FILE,
"alice.properties");
+ client.getOutInterceptors().add(new WSS4JOutInterceptor(properties));
+ return echo;
+ }
+
private Service createService() {
// Create the Service
JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();