keycloak-service
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean クラス
org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean 連携図
Collaboration graph

公開メンバ関数

 UserSessionBean (RealmModel realm, UserSessionModel session)
 
String getId ()
 
String getIpAddress ()
 
Date getStarted ()
 
Date getLastAccess ()
 
Date getExpires ()
 
Set< String > getClients ()
 

非公開変数類

UserSessionModel session
 
RealmModel realm
 

詳解

構築子と解体子

◆ UserSessionBean()

org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean.UserSessionBean ( RealmModel  realm,
UserSessionModel  session 
)
inline
55  {
56  this.realm = realm;
57  this.session = session;
58  }
UserSessionModel session
Definition: SessionsBean.java:52

関数詳解

◆ getClients()

Set<String> org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean.getClients ( )
inline
79  {
80  Set<String> clients = new HashSet<String>();
81  for (String clientUUID : session.getAuthenticatedClientSessions().keySet()) {
82  ClientModel client = realm.getClientById(clientUUID);
83  clients.add(client.getClientId());
84  }
85  return clients;
86  }
UserSessionModel session
Definition: SessionsBean.java:52

◆ getExpires()

Date org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean.getExpires ( )
inline
74  {
75  int max = session.getStarted() + realm.getSsoSessionMaxLifespan();
76  return Time.toDate(max);
77  }
UserSessionModel session
Definition: SessionsBean.java:52

◆ getId()

String org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean.getId ( )
inline
60 {return session.getId(); }
UserSessionModel session
Definition: SessionsBean.java:52

◆ getIpAddress()

String org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean.getIpAddress ( )
inline
62  {
63  return session.getIpAddress();
64  }
UserSessionModel session
Definition: SessionsBean.java:52

◆ getLastAccess()

Date org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean.getLastAccess ( )
inline
70  {
71  return Time.toDate(session.getLastSessionRefresh());
72  }
UserSessionModel session
Definition: SessionsBean.java:52

◆ getStarted()

Date org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean.getStarted ( )
inline
66  {
67  return Time.toDate(session.getStarted());
68  }
UserSessionModel session
Definition: SessionsBean.java:52

メンバ詳解

◆ realm

RealmModel org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean.realm
private

◆ session

UserSessionModel org.keycloak.forms.account.freemarker.model.SessionsBean.UserSessionBean.session
private

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