クラス RegisterSessionAuthenticationStrategy
- java.lang.Object
-
- org.springframework.security.web.authentication.session.RegisterSessionAuthenticationStrategy
- 実装されているすべてのインターフェース:
SessionAuthenticationStrategy
public class RegisterSessionAuthenticationStrategy extends java.lang.Object implements SessionAuthenticationStrategy
Authenticationの成功後、SessionRegistryにユーザーを登録するために使用される戦略。RegisterSessionAuthenticationStrategyは通常、CompositeSessionAuthenticationStrategyおよびConcurrentSessionControlAuthenticationStrategyと組み合わせて使用されますが、セッションの追跡が必要であるが、並行性を制御する必要がない場合は単独で使用できます。NOTE:
SessionRegistryを使用する場合、すべてのセッション(タイムアウトセッションを含む)を削除することが重要です。通常、これはHttpSessionEventPublisherを追加することによって行われます。- 導入:
- 3.2
- 関連事項:
CompositeSessionAuthenticationStrategy
コンストラクターの概要
コンストラクター コンストラクター 説明 RegisterSessionAuthenticationStrategy(SessionRegistry sessionRegistry)
方法の概要
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 voidonAuthentication(Authentication authentication, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)スーパークラスの手順に加えて、sessionRegistry は新しいセッション情報で更新されます。
コンストラクターの詳細
RegisterSessionAuthenticationStrategy
public RegisterSessionAuthenticationStrategy(SessionRegistry sessionRegistry)
- パラメーター:
sessionRegistry- 認証されたセッションが変更されたときに更新されるセッションレジストリ。
メソッドの詳細
onAuthentication
public void onAuthentication(Authentication authentication, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
スーパークラスの手順に加えて、sessionRegistry は新しいセッション情報で更新されます。- 次で指定:
- インターフェース
SessionAuthenticationStrategyのonAuthentication