クラス SpringSessionBackedSessionRegistry<S extends Session>

java.lang.ObjectSE
org.springframework.session.security.SpringSessionBackedSessionRegistry<S>
型パラメーター:
S - Session 型。
実装されたすべてのインターフェース:
org.springframework.security.core.session.SessionRegistry

public class SpringSessionBackedSessionRegistry<S extends Session> extends ObjectSE implements org.springframework.security.core.session.SessionRegistry
Spring Session 自体を維持するのではなく、Spring Session からセッション情報を取得する SessionRegistry。これにより、クラスター環境で Spring Security との同時セッション管理が可能になります。

ユーザーのセッションを検索するために、Spring Session で使用されるものと同じ getAllSessions(Object, boolean) に与えられたプリンシパルの文字列ベースの表現を導出できることに依存しています。

その情報が利用できないため、getAllPrincipals() をサポートしていません。

導入:
1.3
  • コンストラクターの詳細

  • メソッドの詳細

    • getAllPrincipals

      public ListSE<ObjectSE> getAllPrincipals()
      次で指定:
      インターフェース org.springframework.security.core.session.SessionRegistrygetAllPrincipals 
    • getAllSessions

      public ListSE<org.springframework.security.core.session.SessionInformation> getAllSessions(ObjectSE principal, boolean includeExpiredSessions)
      次で指定:
      インターフェース org.springframework.security.core.session.SessionRegistrygetAllSessions 
    • getSessionInformation

      public org.springframework.security.core.session.SessionInformation getSessionInformation(StringSE sessionId)
      次で指定:
      インターフェース org.springframework.security.core.session.SessionRegistrygetSessionInformation 
    • refreshLastRequest

      public void refreshLastRequest(StringSE sessionId)
      次で指定:
      インターフェース org.springframework.security.core.session.SessionRegistryrefreshLastRequest 
    • registerNewSession

      public void registerNewSession(StringSE sessionId, ObjectSE principal)
      次で指定:
      インターフェース org.springframework.security.core.session.SessionRegistryregisterNewSession 
    • removeSessionInformation

      public void removeSessionInformation(StringSE sessionId)
      次で指定:
      インターフェース org.springframework.security.core.session.SessionRegistryremoveSessionInformation 
    • name

      protected StringSE name(ObjectSE principal)
      指定されたプリンシパルの文字列名を派生させます。
      パラメーター:
      principal - Spring Security によって提供されるように
      戻り値:
      プリンシパルの名前、または名前を導出できなかった場合はその toString() 表現