クラス BasicAuthenticationConverter

java.lang.ObjectSE
org.springframework.security.web.authentication.www.BasicAuthenticationConverter
実装されたすべてのインターフェース:
AuthenticationConverter

public class BasicAuthenticationConverter extends ObjectSE implements AuthenticationConverter
認証可能な HttpServletRequest から UsernamePasswordAuthenticationToken に変換します。基本認証スキームの Authorization ヘッダーがない場合は、null 認証が可能です。
導入:
5.2.0
  • フィールドの詳細

  • コンストラクターの詳細

    • BasicAuthenticationConverter

      public BasicAuthenticationConverter()
    • BasicAuthenticationConverter

      public BasicAuthenticationConverter(AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,?> authenticationDetailsSource)
  • メソッドの詳細

    • getCredentialsCharset

      public CharsetSE getCredentialsCharset()
    • setCredentialsCharset

      public void setCredentialsCharset(CharsetSE credentialsCharset)
    • getAuthenticationDetailsSource

      public AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,?> getAuthenticationDetailsSource()
    • setAuthenticationDetailsSource

      public void setAuthenticationDetailsSource(AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,?> authenticationDetailsSource)
    • convert

      public UsernamePasswordAuthenticationToken convert(jakarta.servlet.http.HttpServletRequest request)
      次で指定:
      インターフェース AuthenticationConverterconvert 
    • getCredentialsCharset

      protected CharsetSE getCredentialsCharset(jakarta.servlet.http.HttpServletRequest request)