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