public class DelegatingAuthenticationFailureHandler extends java.lang.Object implements AuthenticationFailureHandler
AuthenticationException の型に基づいて他の AuthenticationFailureHandler インスタンスに委譲する AuthenticationFailureHandler は、onAuthenticationFailure(HttpServletRequest, HttpServletResponse, AuthenticationException) に渡されます。| コンストラクターと説明 |
|---|
DelegatingAuthenticationFailureHandler(java.util.LinkedHashMap<java.lang.Class<? extends AuthenticationException>,AuthenticationFailureHandler> handlers, AuthenticationFailureHandler defaultHandler) 新しいインスタンスを作成します |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AuthenticationException exception) 認証の試行が失敗したときに呼び出されます。 |
public DelegatingAuthenticationFailureHandler(java.util.LinkedHashMap<java.lang.Class<? extends AuthenticationException>,AuthenticationFailureHandler> handlers, AuthenticationFailureHandler defaultHandler)
handlers - 使用する必要がある AuthenticationFailureHandler への AuthenticationException クラスのマップ。それぞれが指定された順序で考慮され、最初の AuthenticationFailureHandler のみが使用されます。このパラメーターは null または空を指定できません。defaultHandler - どのハンドラーも一致しない場合に使用されるデフォルトの AuthenticationFailureHandler このパラメーターは null を指定できません。java.lang.IllegalArgumentException - 無効な引数が指定された場合 public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthenticationException exception)
throws java.io.IOException,
javax.servlet.ServletExceptionAuthenticationFailureHandler 内の onAuthenticationFailure request - 認証試行が発生したリクエスト。response - レスポンス。exception - 認証リクエストを拒否するためにスローされた例外。java.io.IOExceptionjavax.servlet.ServletException