クラス BearerTokenAuthenticationEntryPoint

java.lang.ObjectSE
org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint
実装されたすべてのインターフェース:
AuthenticationEntryPoint

public final class BearerTokenAuthenticationEntryPoint extends ObjectSE implements AuthenticationEntryPoint
BearerTokenAuthenticationFilter を使用して保護されたリソースリクエストの認証を開始するために使用される AuthenticationEntryPoint 実装。

BearerTokenError から提供された情報を使用して、HTTP レスポンスステータスコードを設定し、WWW-Authenticate HTTP ヘッダーに入力します。

導入:
5.1
関連事項:
  • コンストラクターのサマリー

    コンストラクター
    コンストラクター
    説明
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authException)
    RFC 6750、特に errorerror_descriptionerror_uriscope に従って、提供されたパラメーターと形式からエラーの詳細を収集します。
    void
    ベアラートークンのエラーレスポンスで使用するデフォルトのレルム名を設定します

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • BearerTokenAuthenticationEntryPoint

      public BearerTokenAuthenticationEntryPoint()
  • メソッドの詳細

    • commence

      public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authException)
      RFC 6750、特に errorerror_descriptionerror_uriscope に従って、提供されたパラメーターと形式からエラーの詳細を収集します。
      次で指定:
      インターフェース AuthenticationEntryPointcommence 
      パラメーター:
      request - AuthenticationException が発生したリクエスト
      response - ユーザーエージェントが認証を開始できるようにする
      authException - 呼び出しの原因となった例外
    • setRealmName

      public void setRealmName(StringSE realmName)
      ベアラートークンのエラーレスポンスで使用するデフォルトのレルム名を設定します
      パラメーター:
      realmName -