public class BasicAuthenticationConverter extends java.lang.Object implements AuthenticationConverter
UsernamePasswordAuthenticationToken
that can be authenticated. Null
authentication possible if there was no Authorization header with Basic
authentication scheme.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHENTICATION_SCHEME_BASIC |
Constructor and Description |
---|
BasicAuthenticationConverter() |
BasicAuthenticationConverter(AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource) |
Modifier and Type | Method and Description |
---|---|
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)
convert
in interface AuthenticationConverter
protected java.nio.charset.Charset getCredentialsCharset(javax.servlet.http.HttpServletRequest request)