クラス BasicAuthenticationConverter
java.lang.ObjectSE
org.springframework.security.web.authentication.www.BasicAuthenticationConverter
- 実装されたすべてのインターフェース:
AuthenticationConverter
認証可能な HttpServletRequest から
UsernamePasswordAuthenticationToken
に変換します。基本認証スキームの Authorization ヘッダーがない場合は、null 認証が可能です。- 導入:
- 5.2.0
フィールドのサマリー
フィールドコンストラクターの概要
コンストラクターコンストラクター説明BasicAuthenticationConverter
(AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest, ?> authenticationDetailsSource) メソッドのサマリー
修飾子と型メソッド説明convert
(jakarta.servlet.http.HttpServletRequest request) AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,
?> protected CharsetSE
getCredentialsCharset
(jakarta.servlet.http.HttpServletRequest request) void
setAuthenticationDetailsSource
(AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest, ?> authenticationDetailsSource) void
setCredentialsCharset
(CharsetSE credentialsCharset)
フィールドの詳細
AUTHENTICATION_SCHEME_BASIC
- 関連事項:
コンストラクターの詳細
BasicAuthenticationConverter
public BasicAuthenticationConverter()BasicAuthenticationConverter
public BasicAuthenticationConverter(AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest, ?> authenticationDetailsSource)
メソッドの詳細
getCredentialsCharset
setCredentialsCharset
getAuthenticationDetailsSource
public AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,?> getAuthenticationDetailsSource()setAuthenticationDetailsSource
public void setAuthenticationDetailsSource(AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest, ?> authenticationDetailsSource) convert
- 次で指定:
- インターフェース
AuthenticationConverter
のconvert
getCredentialsCharset