282 UserSessionEntity sessionEntity =
new UserSessionEntity();
284 sessionEntity.setAuthMethod(MarshallUtil.unmarshallString(input));
285 sessionEntity.setBrokerSessionId(MarshallUtil.unmarshallString(input));
286 sessionEntity.setBrokerUserId(MarshallUtil.unmarshallString(input));
287 final String userSessionId = MarshallUtil.unmarshallString(input);
288 sessionEntity.setId(userSessionId);
289 sessionEntity.setIpAddress(MarshallUtil.unmarshallString(input));
290 sessionEntity.setLoginUsername(MarshallUtil.unmarshallString(input));
291 sessionEntity.setRealmId(MarshallUtil.unmarshallString(input));
292 sessionEntity.setUser(MarshallUtil.unmarshallString(input));
294 sessionEntity.setLastSessionRefresh(KeycloakMarshallUtil.unmarshallInteger(input));
295 sessionEntity.setStarted(KeycloakMarshallUtil.unmarshallInteger(input));
296 sessionEntity.setRememberMe(input.readBoolean());
298 sessionEntity.setState(
ID_TO_STATE.get(input.readInt()));
300 Map<String, String>
notes = KeycloakMarshallUtil.readMap(input, KeycloakMarshallUtil.STRING_EXT, KeycloakMarshallUtil.STRING_EXT,
301 new KeycloakMarshallUtil.ConcurrentHashMapBuilder<>());
302 sessionEntity.setNotes(notes);
304 AuthenticatedClientSessionStore authSessions = (AuthenticatedClientSessionStore) input.readObject();
305 sessionEntity.setAuthenticatedClientSessions(authSessions);
307 return sessionEntity;
static final Map< Integer, UserSessionModel.State > ID_TO_STATE
Definition: UserSessionEntity.java:233
Map< String, String > notes
Definition: UserSessionEntity.java:79