インターフェース AuthenticationEntryPoint
- すべての既知の実装クラス:
BasicAuthenticationEntryPoint、BearerTokenAuthenticationEntryPoint、CasAuthenticationEntryPoint、DelegatingAuthenticationEntryPoint、DigestAuthenticationEntryPoint、Http403ForbiddenEntryPoint、HttpStatusEntryPoint、LoginUrlAuthenticationEntryPoint
public interface AuthenticationEntryPoint認証スキームを開始するためにExceptionTranslationFilterによって使用されます。
メソッドのサマリー
すべてのメソッド インスタンスメソッド 抽象メソッド 修飾子と型 メソッド 説明 voidcommence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AuthenticationException authException)認証スキームを開始します。
メソッドの詳細
commence
void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AuthenticationException authException) throws java.io.IOException, javax.servlet.ServletException認証スキームを開始します。ExceptionTranslationFilterは、このメソッドを呼び出す前に、AbstractAuthenticationProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEYという名前のHttpSession属性にリクエストされたターゲット URL を入力します。実装では、必要に応じて
ServletResponseのヘッダーを変更して、認証プロセスを開始する必要があります。- パラメーター:
request-AuthenticationExceptionが発生したリクエストresponse- ユーザーエージェントが認証を開始できるようにするauthException- 呼び出しの原因となった例外- 例外:
java.io.IOExceptionjavax.servlet.ServletException