You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2016/07/25 10:33:44 UTC

[1/4] cxf git commit: Recording .gitmergeinfo Changes

Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 782a1cfce -> 97fc24b15


Recording .gitmergeinfo Changes


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/cb3e8549
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/cb3e8549
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/cb3e8549

Branch: refs/heads/3.1.x-fixes
Commit: cb3e85497e96020bec19a7edb9ae3b02b277bbc9
Parents: f9272b5
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Mon Jul 25 10:49:40 2016 +0100
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Mon Jul 25 10:49:40 2016 +0100

----------------------------------------------------------------------
 .gitmergeinfo | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/cb3e8549/.gitmergeinfo
----------------------------------------------------------------------
diff --git a/.gitmergeinfo b/.gitmergeinfo
index aebb000..014811a 100644
--- a/.gitmergeinfo
+++ b/.gitmergeinfo
@@ -131,6 +131,7 @@ M 8f8e587cde7ec97410da6b0586810ccf8f0f3233
 M 8fbf0941ca52aac406b3efcf2e0d73436c72d0f1
 M 91bb2a18f4653f997e455c5089e7a009310591c6
 M 9a9e0a8a37608195c4ef6fbf386728d13d025d2d
+M 9b2bda583c09861c693122ab631c4bffa2187ddd
 M 9b6666816a21d8b85cc051be59a8ab6e968c5d0d
 M 9ecea375930d1a217f35da65e0d6073f7a80bf7d
 M a034e5853484a7ef0a9f0ad1ae6582178f622f31


[4/4] cxf git commit: Removing "TODO" code due to impending WSS4J release

Posted by co...@apache.org.
Removing "TODO" code due to impending WSS4J release


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/97fc24b1
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/97fc24b1
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/97fc24b1

Branch: refs/heads/3.1.x-fixes
Commit: 97fc24b158d3deb18a388a49b01b3436e6c7b1b7
Parents: f09bcb5
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Mon Jul 25 11:33:29 2016 +0100
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Mon Jul 25 11:33:29 2016 +0100

----------------------------------------------------------------------
 .../wss4j/PolicyBasedWSS4JInInterceptor.java    | 74 --------------------
 1 file changed, 74 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/97fc24b1/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java
index 962b5ce..0370c75 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JInInterceptor.java
@@ -24,8 +24,6 @@ import java.util.Collection;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
-import java.util.Properties;
-import java.util.logging.Logger;
 
 import javax.xml.namespace.QName;
 import javax.xml.soap.SOAPException;
@@ -33,7 +31,6 @@ import javax.xml.stream.XMLStreamException;
 
 import org.w3c.dom.Element;
 import org.apache.cxf.binding.soap.SoapMessage;
-import org.apache.cxf.common.logging.LogUtils;
 import org.apache.cxf.helpers.CastUtils;
 import org.apache.cxf.interceptor.Fault;
 import org.apache.cxf.message.MessageUtils;
@@ -46,10 +43,8 @@ import org.apache.cxf.ws.security.wss4j.policyvalidators.PolicyValidatorParamete
 import org.apache.cxf.ws.security.wss4j.policyvalidators.SecurityPolicyValidator;
 import org.apache.cxf.ws.security.wss4j.policyvalidators.ValidatorUtils;
 import org.apache.wss4j.common.crypto.Crypto;
-import org.apache.wss4j.common.crypto.CryptoFactory;
 import org.apache.wss4j.common.crypto.PasswordEncryptor;
 import org.apache.wss4j.common.ext.WSSecurityException;
-import org.apache.wss4j.common.util.Loader;
 import org.apache.wss4j.dom.WSConstants;
 import org.apache.wss4j.dom.WSDataRef;
 import org.apache.wss4j.dom.engine.WSSecurityEngineResult;
@@ -70,8 +65,6 @@ import org.apache.wss4j.policy.model.Wss11;
  */
 public class PolicyBasedWSS4JInInterceptor extends WSS4JInInterceptor {
     
-    private static final Logger LOG = LogUtils.getL7dLogger(PolicyBasedWSS4JInInterceptor.class);
-    
     /**
      * 
      */
@@ -88,73 +81,6 @@ public class PolicyBasedWSS4JInInterceptor extends WSS4JInInterceptor {
         }
     }
     
-    /**
-     * TODO - This method can be removed when WSS4J 2.1.7 is released - see WSS-582
-     * 
-     * Load a Crypto instance. Firstly, it tries to use the cryptoPropertyRefId tag to retrieve
-     * a Crypto object via a custom reference Id. Failing this, it tries to load the crypto
-     * instance via the cryptoPropertyFile tag.
-     *
-     * @param requestData the RequestData object
-     * @return a Crypto instance to use for Encryption creation/verification
-     */
-    @Override
-    protected Crypto loadCrypto(
-        String cryptoPropertyFile,
-        String cryptoPropertyRefId,
-        RequestData requestData
-    ) throws WSSecurityException {
-        Object mc = requestData.getMsgContext();
-        Crypto crypto = null;
-
-        //
-        // Try the Property Ref Id first
-        //
-        String refId = getString(cryptoPropertyRefId, mc);
-        if (refId != null) {
-            crypto = cryptos.get(refId);
-            if (crypto == null) {
-                Object obj = getProperty(mc, refId);
-                if (obj instanceof Properties) {
-                    crypto = CryptoFactory.getInstance((Properties)obj,
-                                                       Loader.getClassLoader(CryptoFactory.class),
-                                                       getPasswordEncryptor(requestData));
-                    cryptos.put(refId, crypto);
-                } else if (obj instanceof Crypto) {
-                    // No need to cache this as it's already loaded
-                    crypto = (Crypto)obj;
-                }
-            }
-            if (crypto == null) {
-                LOG.warning("The Crypto reference " + refId + " specified by "
-                    + cryptoPropertyRefId + " could not be loaded"
-                );
-            }
-        }
-
-        //
-        // Now try loading the properties file
-        //
-        if (crypto == null) {
-            String propFile = getString(cryptoPropertyFile, mc);
-            if (propFile != null) {
-                crypto = cryptos.get(propFile);
-                if (crypto == null) {
-                    crypto = loadCryptoFromPropertiesFile(propFile, requestData);
-                    cryptos.put(propFile, crypto);
-                }
-                if (crypto == null) {
-                    LOG.warning(
-                         "The Crypto properties file " + propFile + " specified by "
-                         + cryptoPropertyFile + " could not be loaded or found"
-                    );
-                }
-            }
-        }
-
-        return crypto;
-    }
-    
     private void handleWSS11(AssertionInfoMap aim, SoapMessage message) {
         if (isRequestor(message)) {
             message.put(WSHandlerConstants.ENABLE_SIGNATURE_CONFIRMATION, "false");


[3/4] cxf git commit: Fixing merge

Posted by co...@apache.org.
Fixing merge


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/f09bcb55
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f09bcb55
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f09bcb55

Branch: refs/heads/3.1.x-fixes
Commit: f09bcb55c8841279dbb4c64d777f7e1c50a98196
Parents: cb3e854
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Mon Jul 25 10:49:59 2016 +0100
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Mon Jul 25 10:49:59 2016 +0100

----------------------------------------------------------------------
 parent/pom.xml | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f09bcb55/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 06e39fc..e9711ec 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -68,15 +68,9 @@
         <cxf.abdera.version>1.1.3</cxf.abdera.version>
         <cxf.activemq.version>5.12.0</cxf.activemq.version>
         <cxf.ahc.version>1.9.8</cxf.ahc.version>
-<<<<<<< HEAD
-        <cxf.apacheds.version>2.0.0-M22</cxf.apacheds.version>
+        <cxf.apacheds.version>2.0.0-M23</cxf.apacheds.version>
         <cxf.atmosphere.version>2.3.7</cxf.atmosphere.version>
         <cxf.atmosphere.version.range>[2.0,2.4)</cxf.atmosphere.version.range>
-=======
-        <cxf.apacheds.version>2.0.0-M23</cxf.apacheds.version>
-        <cxf.atmosphere.version>2.4.3</cxf.atmosphere.version>
-        <cxf.atmosphere.version.range>[2.4,3.0)</cxf.atmosphere.version.range>
->>>>>>> 9b2bda5... Updating Apache DS
         <cxf.axiom.version>1.2.14</cxf.axiom.version>
         <cxf.bcprov.version>1.54</cxf.bcprov.version>
         <cxf.cglib.bundle.version>2.2_2</cxf.cglib.bundle.version>


[2/4] cxf git commit: Updating Apache DS

Posted by co...@apache.org.
Updating Apache DS

# Conflicts:
#	parent/pom.xml


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/f9272b56
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f9272b56
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f9272b56

Branch: refs/heads/3.1.x-fixes
Commit: f9272b565c61ea255a88f12ee2ffa66305233d4f
Parents: 782a1cf
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Mon Jul 25 10:48:32 2016 +0100
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Mon Jul 25 10:49:40 2016 +0100

----------------------------------------------------------------------
 parent/pom.xml | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f9272b56/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 10e72f4..06e39fc 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -68,9 +68,15 @@
         <cxf.abdera.version>1.1.3</cxf.abdera.version>
         <cxf.activemq.version>5.12.0</cxf.activemq.version>
         <cxf.ahc.version>1.9.8</cxf.ahc.version>
+<<<<<<< HEAD
         <cxf.apacheds.version>2.0.0-M22</cxf.apacheds.version>
         <cxf.atmosphere.version>2.3.7</cxf.atmosphere.version>
         <cxf.atmosphere.version.range>[2.0,2.4)</cxf.atmosphere.version.range>
+=======
+        <cxf.apacheds.version>2.0.0-M23</cxf.apacheds.version>
+        <cxf.atmosphere.version>2.4.3</cxf.atmosphere.version>
+        <cxf.atmosphere.version.range>[2.4,3.0)</cxf.atmosphere.version.range>
+>>>>>>> 9b2bda5... Updating Apache DS
         <cxf.axiom.version>1.2.14</cxf.axiom.version>
         <cxf.bcprov.version>1.54</cxf.bcprov.version>
         <cxf.cglib.bundle.version>2.2_2</cxf.cglib.bundle.version>