From caeb7104442e46b819320d5cffb6df4face6d8db Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 17 Jun 2015 19:28:58 +0200 Subject: [PATCH] KEYCLOAK-1476 --- .../java/org/keycloak/models/UserCredentialValueModel.java | 4 +++- .../java/org/keycloak/models/cache/entities/CachedUser.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/model/api/src/main/java/org/keycloak/models/UserCredentialValueModel.java b/model/api/src/main/java/org/keycloak/models/UserCredentialValueModel.java index 4654ba5b60fc..988f6a62f726 100755 --- a/model/api/src/main/java/org/keycloak/models/UserCredentialValueModel.java +++ b/model/api/src/main/java/org/keycloak/models/UserCredentialValueModel.java @@ -1,11 +1,13 @@ package org.keycloak.models; +import java.io.Serializable; + /** * Used just in cases when we want to "directly" update or retrieve the hash or salt of user credential (For example during export/import) * * @author Marek Posolda */ -public class UserCredentialValueModel { +public class UserCredentialValueModel implements Serializable { private String type; private String value; diff --git a/model/invalidation-cache/model-adapters/src/main/java/org/keycloak/models/cache/entities/CachedUser.java b/model/invalidation-cache/model-adapters/src/main/java/org/keycloak/models/cache/entities/CachedUser.java index eb9d418cb72d..bbef81b75935 100755 --- a/model/invalidation-cache/model-adapters/src/main/java/org/keycloak/models/cache/entities/CachedUser.java +++ b/model/invalidation-cache/model-adapters/src/main/java/org/keycloak/models/cache/entities/CachedUser.java @@ -5,6 +5,7 @@ import org.keycloak.models.UserCredentialValueModel; import org.keycloak.models.UserModel; +import java.io.Serializable; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; @@ -16,7 +17,7 @@ * @author Bill Burke * @version $Revision: 1 $ */ -public class CachedUser { +public class CachedUser implements Serializable { private String id; private String realm; private String username;