cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject git commit: Clone the SecurityToken Element
Date Wed, 12 Mar 2014 16:20:11 GMT
Repository: cxf
Updated Branches:
  refs/heads/master f2284040e -> c25a5c905


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

Branch: refs/heads/master
Commit: c25a5c905e0e4a0c0fd605e3a36e45e5b2af2853
Parents: f228404
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:19:54 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/c25a5c90/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 086d8ef..23694f3 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
@@ -270,7 +270,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