void
|
afterPropertiesSet()
Check whether all required properties have been set.
|
void
|
doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
Try to authenticate a pre-authenticated user with Spring Security if the user has not yet been authenticated.
|
AuthenticationDetailsSource<HttpServletRequest, ?>
|
getAuthenticationDetailsSource()
|
abstract
Object
|
getPreAuthenticatedCredentials(HttpServletRequest request)
Override to extract the credentials (if applicable) from the current request.
|
abstract
Object
|
getPreAuthenticatedPrincipal(HttpServletRequest request)
Override to extract the principal information from the current request
|
void
|
setApplicationEventPublisher(ApplicationEventPublisher anApplicationEventPublisher)
|
void
|
setAuthenticationDetailsSource(AuthenticationDetailsSource<HttpServletRequest, ?> authenticationDetailsSource)
|
void
|
setAuthenticationManager(AuthenticationManager authenticationManager)
|
void
|
setCheckForPrincipalChanges(boolean checkForPrincipalChanges)
If set, the pre-authenticated principal will be checked on each request and compared
against the name of the current Authentication object.
|
void
|
setContinueFilterChainOnUnsuccessfulAuthentication(boolean shouldContinue)
If set to true , any AuthenticationException raised by the AuthenticationManager will be
swallowed, and the request will be allowed to proceed, potentially using alternative authentication mechanisms.
|
void
|
setInvalidateSessionOnPrincipalChange(boolean invalidateSessionOnPrincipalChange)
If checkForPrincipalChanges is set, and a change of principal is detected, determines whether
any existing session should be invalidated before proceeding to authenticate the new principal.
|
void
|
successfulAuthentication(HttpServletRequest request, HttpServletResponse response, Authentication authResult)
Puts the Authentication instance returned by the
authentication manager into the secure context.
|
void
|
unsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException failed)
Ensures the authentication object in the secure context is set to null when authentication fails.
|