クラス DPoPAuthenticationEntryPoint
java.lang.ObjectSE
org.springframework.security.oauth2.server.resource.web.DPoPAuthenticationEntryPoint
- 実装済みのインターフェース一覧:
AuthenticationEntryPoint
public final class DPoPAuthenticationEntryPoint
extends ObjectSE
implements AuthenticationEntryPoint
DPoP で保護されたリソースリクエストの認証を開始するために使用される
AuthenticationEntryPoint 実装。- 導入:
- 7.1
- 関連事項:
コンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明voidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authenticationException) 認証スキームを開始します。
コンストラクターの詳細
DPoPAuthenticationEntryPoint
public DPoPAuthenticationEntryPoint()
方法の詳細
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authenticationException) インターフェースからコピーされた説明:AuthenticationEntryPoint認証スキームを開始します。ExceptionTranslationFilterは、このメソッドを呼び出す前に、AbstractAuthenticationProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEYという名前のHttpSession属性にリクエストされたターゲット URL を入力します。実装では、必要に応じて
ServletResponseのヘッダーを変更して、認証プロセスを開始する必要があります。- 次で指定:
- インターフェース
AuthenticationEntryPoint内のcommence - パラメーター:
request-AuthenticationExceptionが発生したリクエストresponse- ユーザーエージェントが認証を開始できるようにするauthenticationException- 呼び出しの原因となった例外