keycloak
公開メンバ関数 | 全メンバ一覧
org.keycloak.models.sessions.infinispan.entities.AuthenticatedClientSessionEntity.ExternalizerImpl クラス
org.keycloak.models.sessions.infinispan.entities.AuthenticatedClientSessionEntity.ExternalizerImpl の継承関係図
Inheritance graph
org.keycloak.models.sessions.infinispan.entities.AuthenticatedClientSessionEntity.ExternalizerImpl 連携図
Collaboration graph

公開メンバ関数

void writeObject (ObjectOutput output, AuthenticatedClientSessionEntity session) throws IOException
 
AuthenticatedClientSessionEntity readObject (ObjectInput input) throws IOException, ClassNotFoundException
 

詳解

関数詳解

◆ readObject()

AuthenticatedClientSessionEntity org.keycloak.models.sessions.infinispan.entities.AuthenticatedClientSessionEntity.ExternalizerImpl.readObject ( ObjectInput  input) throws IOException, ClassNotFoundException
inline
189  {
190  AuthenticatedClientSessionEntity sessionEntity = new AuthenticatedClientSessionEntity(MarshallUtil.unmarshallUUID(input, false));
191 
192  sessionEntity.setRealmId(MarshallUtil.unmarshallString(input));
193 
194  sessionEntity.setAuthMethod(MarshallUtil.unmarshallString(input));
195  sessionEntity.setRedirectUri(MarshallUtil.unmarshallString(input));
196  sessionEntity.setTimestamp(KeycloakMarshallUtil.unmarshallInteger(input));
197  sessionEntity.setAction(MarshallUtil.unmarshallString(input));
198 
199  Map<String, String> notes = KeycloakMarshallUtil.readMap(input, KeycloakMarshallUtil.STRING_EXT, KeycloakMarshallUtil.STRING_EXT,
200  new KeycloakMarshallUtil.ConcurrentHashMapBuilder<>());
201  sessionEntity.setNotes(notes);
202 
203  sessionEntity.setCurrentRefreshToken(MarshallUtil.unmarshallString(input));
204  sessionEntity.setCurrentRefreshTokenUseCount(KeycloakMarshallUtil.unmarshallInteger(input));
205 
206  return sessionEntity;
207  }
Map< String, String > notes
Definition: AuthenticatedClientSessionEntity.java:51
AuthenticatedClientSessionEntity(UUID id)
Definition: AuthenticatedClientSessionEntity.java:58

◆ writeObject()

void org.keycloak.models.sessions.infinispan.entities.AuthenticatedClientSessionEntity.ExternalizerImpl.writeObject ( ObjectOutput  output,
AuthenticatedClientSessionEntity  session 
) throws IOException
inline
172  {
173  MarshallUtil.marshallUUID(session.id, output, false);
174  MarshallUtil.marshallString(session.getRealmId(), output);
175  MarshallUtil.marshallString(session.getAuthMethod(), output);
176  MarshallUtil.marshallString(session.getRedirectUri(), output);
177  KeycloakMarshallUtil.marshall(session.getTimestamp(), output);
178  MarshallUtil.marshallString(session.getAction(), output);
179 
180  Map<String, String> notes = session.getNotes();
181  KeycloakMarshallUtil.writeMap(notes, KeycloakMarshallUtil.STRING_EXT, KeycloakMarshallUtil.STRING_EXT, output);
182 
183  MarshallUtil.marshallString(session.getCurrentRefreshToken(), output);
184  KeycloakMarshallUtil.marshall(session.getCurrentRefreshTokenUseCount(), output);
185  }
Map< String, String > notes
Definition: AuthenticatedClientSessionEntity.java:51

このクラス詳解は次のファイルから抽出されました: