cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/2] git commit: Clone the SecurityToken Element
Date Wed, 12 Mar 2014 16:34:05 GMT
Clone the SecurityToken Element


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

Branch: refs/heads/2.7.x-fixes
Commit: 83cb3a26430038d408c7694fe4ab5807049a4a12
Parents: a42fd57
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Mar 12 16:19:34 2014 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Mar 12 16:33:58 2014 +0000

----------------------------------------------------------------------
 .../org/apache/cxf/ws/security/tokenstore/SecurityToken.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/83cb3a26/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java
index 19088cb..58ed569 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java
@@ -259,7 +259,9 @@ public class SecurityToken implements Serializable {
      * @param token The token to set.
      */
     public void setToken(Element token) {
-        this.token = token;
+        if (token != null) {
+            this.token = cloneElement(token);
+        }
     }
 
     /**


Mime
View raw message