java.lang.Object | |
↳ | org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint |
Used by the ExceptionTraslationFilter
to commence authentication via the BasicAuthenticationFilter
.
Once a user agent is authenticated using BASIC authentication, logout requires that
the browser be closed or an unauthorized (401) header be sent. The simplest way of achieving the latter is to call
the commence(HttpServletRequest, HttpServletResponse, AuthenticationException)
method below. This will indicate to
the browser its credentials are no longer authorized, causing it to prompt the user to login again.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Commences an authentication scheme.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.security.web.AuthenticationEntryPoint
|
Commences an authentication scheme.
ExceptionTranslationFilter
will populate the HttpSession
attribute named
AbstractAuthenticationProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEY
with the requested target URL before
calling this method.
Implementations should modify the headers on the ServletResponse
as necessary to
commence the authentication process.
request | that resulted in an AuthenticationException |
---|---|
response | so that the user agent can begin authentication |
authException | that caused the invocation |
IOException | |
---|---|
ServletException |