クラス 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
コンストラクターのサマリー
コンストラクターコンストラクター説明SpringSessionBackedSessionRegistry
(FindByIndexNameSessionRepository<S> sessionRepository) メソッドのサマリー
修飾子と型メソッド説明ListSE<org.springframework.security.core.session.SessionInformation>
getAllSessions
(ObjectSE principal, boolean includeExpiredSessions) org.springframework.security.core.session.SessionInformation
getSessionInformation
(StringSE sessionId) protected StringSE
指定されたプリンシパルの文字列名を派生させます。void
refreshLastRequest
(StringSE sessionId) void
registerNewSession
(StringSE sessionId, ObjectSE principal) void
removeSessionInformation
(StringSE sessionId)
コンストラクターの詳細
SpringSessionBackedSessionRegistry
メソッドの詳細
getAllPrincipals
- 次で指定:
- インターフェース
org.springframework.security.core.session.SessionRegistry
のgetAllPrincipals
getAllSessions
public ListSE<org.springframework.security.core.session.SessionInformation> getAllSessions(ObjectSE principal, boolean includeExpiredSessions) - 次で指定:
- インターフェース
org.springframework.security.core.session.SessionRegistry
のgetAllSessions
getSessionInformation
public org.springframework.security.core.session.SessionInformation getSessionInformation(StringSE sessionId) - 次で指定:
- インターフェース
org.springframework.security.core.session.SessionRegistry
のgetSessionInformation
refreshLastRequest
- 次で指定:
- インターフェース
org.springframework.security.core.session.SessionRegistry
のrefreshLastRequest
registerNewSession
- 次で指定:
- インターフェース
org.springframework.security.core.session.SessionRegistry
のregisterNewSession
removeSessionInformation
- 次で指定:
- インターフェース
org.springframework.security.core.session.SessionRegistry
のremoveSessionInformation
name
指定されたプリンシパルの文字列名を派生させます。- パラメーター:
principal
- Spring Security によって提供されるように- 戻り値:
- プリンシパルの名前、または名前を導出できなかった場合はその
toString()
表現