クラス NoOpAuthenticationEntryPoint
java.lang.ObjectSE
org.springframework.security.web.authentication.NoOpAuthenticationEntryPoint
- 実装されたすべてのインターフェース:
AuthenticationEntryPoint
何もしない
AuthenticationEntryPoint
実装。- 導入:
- 6.2
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明void
commence
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authException) 認証スキームを開始します。
コンストラクターの詳細
NoOpAuthenticationEntryPoint
public NoOpAuthenticationEntryPoint()
メソッドの詳細
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authException) throws IOExceptionSE, jakarta.servlet.ServletException インターフェースからコピーされた説明:AuthenticationEntryPoint
認証スキームを開始します。ExceptionTranslationFilter
は、このメソッドを呼び出す前に、AbstractAuthenticationProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEY
という名前のHttpSession
属性にリクエストされたターゲット URL を入力します。実装では、必要に応じて
ServletResponse
のヘッダーを変更して、認証プロセスを開始する必要があります。- 次で指定:
- インターフェース
AuthenticationEntryPoint
のcommence
- パラメーター:
request
-AuthenticationException
が発生したリクエストresponse
- ユーザーエージェントが認証を開始できるようにするauthException
- 呼び出しの原因となった例外- 例外:
IOExceptionSE
jakarta.servlet.ServletException