クラス AbstractSessionFixationProtectionStrategy

    • フィールドサマリー

      フィールド  
      修飾子と型 フィールド 説明
      protected org.apache.commons.logging.Loglogger
    • メソッドのサマリー

      すべてのメソッド   インスタンスメソッド   具象メソッド  
      修飾子と型 メソッド 説明
      voidonAuthentication​(Authentication authentication, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      ユーザーが新しく認証されたときに呼び出されます。
      protected voidonSessionChange​(java.lang.String originalSessionId, javax.servlet.http.HttpSession newSession, Authentication auth)
      セッションが変更され、古い属性が新しいセッションに移行されたときに呼び出されます。
      voidsetAlwaysCreateSession​(boolean alwaysCreateSession)
      voidsetApplicationEventPublisher​(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
      SessionFixationProtectionEvent の送信に使用する ApplicationEventPublisher を設定します。
      • クラス java.lang.Object から継承されたメソッド

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • フィールドの詳細

      • logger

        protected final org.apache.commons.logging.Log logger
    • メソッドの詳細

      • onAuthentication

        public void onAuthentication​(Authentication authentication,
                                     javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response)
        ユーザーが新しく認証されたときに呼び出されます。

        セッションがすでに存在し、クライアントからのセッション ID と一致する場合、新しいセッションが作成され、セッション属性がそこにコピーされます(migrateSessionAttributes が設定されている場合)。クライアントのリクエストされたセッション ID が無効な場合、現在のセッションと一致しない場合はセッション ID を変更する必要がないため、何も実行されません。

        セッションがない場合、alwaysCreateSession プロパティが設定されていない限り、アクションは実行されません。その場合、セッションが存在しない場合はセッションが作成されます。

        次で指定:
        インターフェース SessionAuthenticationStrategyonAuthentication 
      • onSessionChange

        protected void onSessionChange​(java.lang.String originalSessionId,
                                       javax.servlet.http.HttpSession newSession,
                                       Authentication auth)
        セッションが変更され、古い属性が新しいセッションに移行されたときに呼び出されます。開始するセッションが存在する場合にのみ呼び出されます。サブクラスが追加の動作をプラグインできるようにします。*

        このメソッドのデフォルト実装は、セッション ID が変更されたことをアプリケーションに通知するために SessionFixationProtectionEvent を公開します。このメソッドをオーバーライドしても、これらのイベントを公開したい場合は、オーバーライドメソッド内で super.onSessionChange() を呼び出す必要があります。

        パラメーター:
        originalSessionId - 元のセッション識別子
        newSession - 新しく作成されたセッション
        auth - 新しく認証されたプリンシパルのトークン
      • setApplicationEventPublisher

        public void setApplicationEventPublisher​(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
        SessionFixationProtectionEvent の送信に使用する ApplicationEventPublisher を設定します。デフォルトでは、SessionFixationProtectionEvent は送信されません。
        次で指定:
        インターフェース org.springframework.context.ApplicationEventPublisherAwaresetApplicationEventPublisher 
        パラメーター:
        applicationEventPublisher - ApplicationEventPublishernull にはできません。
      • setAlwaysCreateSession

        public void setAlwaysCreateSession​(boolean alwaysCreateSession)