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 2014/03/12 17:20:11 UTC
git commit: Clone the SecurityToken Element
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 <co...@apache.org>
Authored: Wed Mar 12 16:19:34 2014 +0000
Committer: Colm O hEigeartaigh <co...@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);
+ }
}
/**