cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/2] cxf git commit: [CXF-6109] - Incorrect TrustException constructor in AbstractSTSClient
Date Mon, 24 Nov 2014 10:55:28 GMT
[CXF-6109] - Incorrect TrustException constructor in AbstractSTSClient


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

Branch: refs/heads/master
Commit: e907a555fdebe1a3d1c63e7f156d048384e3a77e
Parents: 388d6ea
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Nov 21 17:37:57 2014 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Nov 24 10:48:39 2014 +0000

----------------------------------------------------------------------
 .../org/apache/cxf/ws/security/trust/AbstractSTSClient.java    | 6 +++---
 .../java/org/apache/cxf/ws/security/trust/TrustException.java  | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/e907a555/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java
index 013ff49..5e0ea25 100755
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java
@@ -586,7 +586,7 @@ public abstract class AbstractSTSClient implements Configurable, InterceptorProv
                     client = new ClientImpl(bus, endpoint);
                 }
             } catch (Exception ex) {
-                throw new TrustException(LOG, "WS_MEX_ERROR", ex);
+                throw new TrustException("WS_MEX_ERROR", ex, LOG);
             }
         }
     }
@@ -1436,7 +1436,7 @@ public abstract class AbstractSTSClient implements Configurable, InterceptorProv
                     try {
                         secret = psha1.createKey(requestorEntropy, serviceEntr, 0, length
/ 8);
                     } catch (WSSecurityException e) {
-                        throw new TrustException("DERIVED_KEY_ERROR", LOG, e);
+                        throw new TrustException("DERIVED_KEY_ERROR", e, LOG);
                     }
                 } else {
                     // Service entropy missing
@@ -1487,7 +1487,7 @@ public abstract class AbstractSTSClient implements Configurable, InterceptorProv
                         WSSecurityEngineResult.TAG_SECRET
                     );
             } catch (IOException e) {
-                throw new TrustException("ENCRYPTED_KEY_ERROR", LOG, e);
+                throw new TrustException("ENCRYPTED_KEY_ERROR", e, LOG);
             }
         }
     }

http://git-wip-us.apache.org/repos/asf/cxf/blob/e907a555/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/TrustException.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/TrustException.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/TrustException.java
index 72c9748..e77f0d4 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/TrustException.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/TrustException.java
@@ -61,7 +61,7 @@ public class TrustException extends UncheckedException {
     public TrustException(String msg, Logger log) {
         super(new Message(msg, log));
     }
-    public TrustException(String msg, Logger log, Throwable t) {
+    public TrustException(String msg, Throwable t, Logger log) {
         super(new Message(msg, log), t);
     }
 


Mime
View raw message