cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] git commit: Clone the SecurityToken Element
Date Wed, 12 Mar 2014 16:44:26 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.6.x-fixes e72c4cdc4 -> 8c8329f79


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/7870cced
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/7870cced
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/7870cced

Branch: refs/heads/2.6.x-fixes
Commit: 7870cced694bbb41e613e38839cdf6c790e13494
Parents: e72c4cd
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:34:50 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/7870cced/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 31dafd9..0fa0390 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
@@ -249,7 +249,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