cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1175021 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java
Date Fri, 23 Sep 2011 21:07:11 GMT
Author: dkulp
Date: Fri Sep 23 21:07:10 2011
New Revision: 1175021

URL: http://svn.apache.org/viewvc?rev=1175021&view=rev
Log:
[CXF-3820] Make security token serializable
Patch from Anubhav Sharma applied

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java?rev=1175021&r1=1175020&r2=1175021&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/SecurityToken.java
Fri Sep 23 21:07:10 2011
@@ -19,6 +19,7 @@
 
 package org.apache.cxf.ws.security.tokenstore;
 
+import java.io.Serializable;
 import java.security.cert.X509Certificate;
 import java.text.DateFormat;
 import java.text.ParseException;
@@ -39,7 +40,10 @@ import org.apache.ws.security.util.XmlSc
 /**
  * 
  */
-public class SecurityToken {
+public class SecurityToken implements Serializable {
+    
+    private static final long serialVersionUID = -8023092932997444513L;
+
     public enum State {
         UNKNOWN,
         ISSUED, 
@@ -142,7 +146,7 @@ public class SecurityToken {
 
     private X509Certificate x509cert;
 
-    private Crypto crypto;
+    private transient Crypto crypto;
     
     public SecurityToken() {
         



Mime
View raw message