public class BasicAuthenticationConverter extends java.lang.Object implements AuthenticationConverter
UsernamePasswordAuthenticationToken に変換します。基本認証スキームの Authorization ヘッダーがない場合は、null 認証が可能です。| 修飾子と型 | フィールドと説明 |
|---|---|
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) |
public static final java.lang.String AUTHENTICATION_SCHEME_BASIC
public BasicAuthenticationConverter()
public BasicAuthenticationConverter(AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource)
public java.nio.charset.Charset getCredentialsCharset()
public void setCredentialsCharset(java.nio.charset.Charset credentialsCharset)
public AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> getAuthenticationDetailsSource()
public void setAuthenticationDetailsSource(AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource)
public UsernamePasswordAuthenticationToken convert(javax.servlet.http.HttpServletRequest request)
AuthenticationConverter 内の convert protected java.nio.charset.Charset getCredentialsCharset(javax.servlet.http.HttpServletRequest request)