クラス 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.SessionInformationgetSessionInformation(StringSE sessionId) protected StringSE指定されたプリンシパルの文字列名を派生させます。voidrefreshLastRequest(StringSE sessionId) voidregisterNewSession(StringSE sessionId, ObjectSE principal) voidremoveSessionInformation(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()表現