クラス SimpleUrlAuthenticationSuccessHandler
- java.lang.Object
-
- org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
-
- org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler
- 実装されているすべてのインターフェース:
AuthenticationSuccessHandler
public class SimpleUrlAuthenticationSuccessHandler extends AbstractAuthenticationTargetUrlRequestHandler implements AuthenticationSuccessHandler
AuthenticationSuccessHandler 。これは、認証が成功したときにユーザーが送信されるデフォルトの URL で構成できます。使用されるロジックは
parent classのロジックです。- 導入:
- 3.0
フィールドのサマリー
クラス org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler から継承されたフィールド
logger
コンストラクターの概要
コンストラクター コンストラクター 説明 SimpleUrlAuthenticationSuccessHandler()SimpleUrlAuthenticationSuccessHandler(java.lang.String defaultTargetUrl)基本クラスの defaultTargetUrl プロパティを設定するコンストラクター。
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 protected voidclearAuthenticationAttributes(javax.servlet.http.HttpServletRequest request)認証プロセス中にセッションに格納された可能性がある一時的な認証関連データを削除します。voidonAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Authentication authentication)親クラスhandle()メソッドを呼び出してターゲット URL に転送またはリダイレクトし、次にclearAuthenticationAttributes()を呼び出して残りのセッションデータを削除します。クラス org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler から継承されたメソッド
determineTargetUrl, determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
インターフェース org.springframework.security.web.authentication.AuthenticationSuccessHandler から継承されたメソッド
onAuthenticationSuccess
コンストラクターの詳細
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()を呼び出して残りのセッションデータを削除します。- 次で指定:
- インターフェース
AuthenticationSuccessHandlerのonAuthenticationSuccess - パラメーター:
request- 成功した認証を引き起こしたリクエストresponse- レスポンスauthentication- 認証プロセス中に作成された Authentication オブジェクト。- 例外:
java.io.IOExceptionjavax.servlet.ServletException
clearAuthenticationAttributes
protected final void clearAuthenticationAttributes(javax.servlet.http.HttpServletRequest request)
認証プロセス中にセッションに格納された可能性がある一時的な認証関連データを削除します。