クラス SimpleUrlAuthenticationSuccessHandler

    • コンストラクターの詳細

      • SimpleUrlAuthenticationSuccessHandler

        public SimpleUrlAuthenticationSuccessHandler()
      • SimpleUrlAuthenticationSuccessHandler

        public SimpleUrlAuthenticationSuccessHandler​(java.lang.String defaultTargetUrl)
        基本クラスの defaultTargetUrl プロパティを設定するコンストラクター。
        パラメーター:
        defaultTargetUrl - 認証が成功した場合にユーザーがリダイレクトされる URL。
    • メソッドの詳細

      • onAuthenticationSuccess

        public void onAuthenticationSuccess​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            Authentication authentication)
                                     throws java.io.IOException,
                                            javax.servlet.ServletException
        親クラス handle() メソッドを呼び出してターゲット URL に転送またはリダイレクトし、次に clearAuthenticationAttributes() を呼び出して残りのセッションデータを削除します。
        次で指定:
        インターフェース AuthenticationSuccessHandleronAuthenticationSuccess 
        パラメーター:
        request - 成功した認証を引き起こしたリクエスト
        response - レスポンス
        authentication - 認証プロセス中に作成された Authentication オブジェクト。
        例外:
        java.io.IOException
        javax.servlet.ServletException
      • clearAuthenticationAttributes

        protected final void clearAuthenticationAttributes​(javax.servlet.http.HttpServletRequest request)
        認証プロセス中にセッションに格納された可能性がある一時的な認証関連データを削除します。