From 763644359808a212070e5c2129b77496d7fb165e Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Wed, 6 Jun 2007 03:22:16 +0000 Subject: [PATCH] Upgraded to XWSS 2.0 FCS --- security/pom.xml | 37 ++++++++++++++++--- .../callback/KeyStoreCallbackHandler.java | 8 +--- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/security/pom.xml b/security/pom.xml index e72ded5c..74bce70e 100644 --- a/security/pom.xml +++ b/security/pom.xml @@ -1,4 +1,5 @@ - + spring-ws org.springframework.ws @@ -11,9 +12,10 @@ Spring-WS WS-Security implementation - spring-ext - Spring External Dependencies Repository - https://svn.sourceforge.net/svnroot/springframework/repos/repo-ext/ + java.net + Java.net Repository for Maven2 + http://download.java.net/maven/1/ + legacy @@ -21,6 +23,12 @@ org.springframework.ws spring-ws-core + + + org.springframework.ws + spring-oxm + + org.springframework.ws @@ -57,10 +65,29 @@ com.sun.xml.wss xws-security + + + javax.xml.parsers + jaxp-api + + + javax.xml.bind + jaxb-api + + + javax.xml.ws + jaxws-api + + + javax.xml + jaxrpc-api + + - com.sun.org.apache.xml.security + xml-security xmlsec + 1.3.0 org.acegisecurity diff --git a/security/src/main/java/org/springframework/ws/soap/security/xwss/callback/KeyStoreCallbackHandler.java b/security/src/main/java/org/springframework/ws/soap/security/xwss/callback/KeyStoreCallbackHandler.java index 7105382c..46b451b6 100644 --- a/security/src/main/java/org/springframework/ws/soap/security/xwss/callback/KeyStoreCallbackHandler.java +++ b/security/src/main/java/org/springframework/ws/soap/security/xwss/callback/KeyStoreCallbackHandler.java @@ -34,16 +34,14 @@ import java.security.cert.X509CertSelector; import java.security.cert.X509Certificate; import java.util.Arrays; import java.util.Enumeration; - import javax.crypto.SecretKey; -import com.sun.org.apache.xml.internal.security.utils.RFC2253Parser; import com.sun.xml.wss.impl.callback.CertificateValidationCallback; import com.sun.xml.wss.impl.callback.DecryptionKeyCallback; import com.sun.xml.wss.impl.callback.EncryptionKeyCallback; import com.sun.xml.wss.impl.callback.SignatureKeyCallback; import com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback; - +import org.apache.xml.security.utils.RFC2253Parser; import org.springframework.beans.factory.InitializingBean; import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.Resource; @@ -158,9 +156,7 @@ public class KeyStoreCallbackHandler extends CryptographyCallbackHandler impleme return null; } - /** - * Sets the key store alias for the default certificate and private key. - */ + /** Sets the key store alias for the default certificate and private key. */ public void setDefaultAlias(String defaultAlias) { this.defaultAlias = defaultAlias; }