abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r442270 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/SimpleSubjectResolver.java
Date Mon, 11 Sep 2006 17:29:53 GMT
Author: jmsnell
Date: Mon Sep 11 10:29:52 2006
New Revision: 442270

URL: http://svn.apache.org/viewvc?view=rev&rev=442270
Log:
Make SimplePrincipal and AnonymousPrincipal serializable

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/SimpleSubjectResolver.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/SimpleSubjectResolver.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/SimpleSubjectResolver.java?view=diff&rev=442270&r1=442269&r2=442270
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/SimpleSubjectResolver.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/SimpleSubjectResolver.java
Mon Sep 11 10:29:52 2006
@@ -17,6 +17,7 @@
 */
 package org.apache.abdera.protocol.server.util;
 
+import java.io.Serializable;
 import java.security.Principal;
 
 import javax.security.auth.Subject;
@@ -39,7 +40,10 @@
     return resolve(new SimplePrincipal(userid));
   }
 
-  static class SimplePrincipal implements Principal {
+  static class SimplePrincipal 
+    implements Principal, 
+               Serializable {
+    private static final long serialVersionUID = 7161420960293729670L;
     final String name;
     SimplePrincipal(String name) {
       this.name = name;
@@ -72,7 +76,10 @@
     
   }
   
-  public static final class AnonymousPrincipal implements Principal {
+  public static final class AnonymousPrincipal 
+    implements Principal, 
+               Serializable {
+    private static final long serialVersionUID = -5050930075733261944L;
     final String name = "Anonymous";
     public String getName() {
       return name;



Mime
View raw message