diff --git a/parent/pom.xml b/parent/pom.xml index b04f5cb7..86f2b3b4 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -523,7 +523,7 @@ org.apache.ws.security wss4j - 1.5.3.2 + 1.5.4 axis @@ -600,12 +600,12 @@ org.springframework.security spring-security-core - 2.0.1 + 2.0.2 org.springframework.security spring-security-core-tiger - 2.0.1 + 2.0.2 diff --git a/pom.xml b/pom.xml index 98ae37b4..4537ecab 100644 --- a/pom.xml +++ b/pom.xml @@ -393,7 +393,7 @@ org.apache.ws.security wss4j - 1.5.3.2 + 1.5.4 ${project.build.directory}/dependency/wss4j/ @@ -425,7 +425,7 @@ org.springframework.security spring-security-core - 2.0.1 + 2.0.2 ${project.build.directory}/dependency/spring-security/ diff --git a/security/pom.xml b/security/pom.xml index 2c183051..e87313d4 100644 --- a/security/pom.xml +++ b/security/pom.xml @@ -1,4 +1,5 @@ - + spring-ws-parent org.springframework.ws @@ -21,11 +22,6 @@ Spring External Dependencies Repository https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext/ - - wso2 - WSO2 Repository - http://dist.wso2.org/maven2/ - diff --git a/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jHandler.java b/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jHandler.java index 6872015e..c04fe28b 100644 --- a/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jHandler.java +++ b/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jHandler.java @@ -54,7 +54,7 @@ class Wss4jHandler extends WSHandler { private Crypto securementSignatureCrypto; - public Wss4jHandler() { + Wss4jHandler() { // set up default handler properties options.setProperty(WSHandlerConstants.MUST_UNDERSTAND, Boolean.toString(true)); options.setProperty(WSHandlerConstants.ENABLE_SIGNATURE_CONFIRMATION, Boolean.toString(true)); @@ -127,7 +127,7 @@ class Wss4jHandler extends WSHandler { } } else { - callback = new WSPasswordCallback("", WSPasswordCallback.UNKNOWN); + callback = new WSPasswordCallback(username, WSPasswordCallback.UNKNOWN); callback.setPassword(securementPassword); } return callback;