From 80e8e2f282e254c0536bcf59df55d616ee301286 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Wed, 20 Oct 2010 17:50:09 +0000 Subject: [PATCH] Bug 328273 added serializable to default user identity git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2371 7e9141cc-0065-0410-87d8-b60c137991c4 --- VERSION.txt | 1 + .../org/eclipse/jetty/security/DefaultUserIdentity.java | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index b09e22d12fc..556f99bed52 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1,6 +1,7 @@ + 328199 Ensure blocking connectors always close socket + 328205 Improved SelectManager stopping + + 328273 Added serializable to default user identity jetty-7.2.0.v20101020 20 October 2010 + 289540 added javadoc into distribution diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/DefaultUserIdentity.java b/jetty-security/src/main/java/org/eclipse/jetty/security/DefaultUserIdentity.java index 1d4425b627e..b29f07578fd 100644 --- a/jetty-security/src/main/java/org/eclipse/jetty/security/DefaultUserIdentity.java +++ b/jetty-security/src/main/java/org/eclipse/jetty/security/DefaultUserIdentity.java @@ -13,6 +13,7 @@ package org.eclipse.jetty.security; +import java.io.Serializable; import java.security.Principal; import javax.security.auth.Subject; @@ -25,9 +26,11 @@ import org.eclipse.jetty.server.UserIdentity; * The default implementation of UserIdentity. * */ -public class DefaultUserIdentity implements UserIdentity +public class DefaultUserIdentity implements UserIdentity, Serializable { - private final Subject _subject; + private static final long serialVersionUID = 2418992006515454163L; + + private final Subject _subject; private final Principal _userPrincipal; private final String[] _roles;