Package org.springframework.security.web
Interface AuthenticationEntryPoint
- All Known Implementing Classes:
BasicAuthenticationEntryPoint,BearerTokenAuthenticationEntryPoint,CasAuthenticationEntryPoint,DelegatingAuthenticationEntryPoint,DigestAuthenticationEntryPoint,Http403ForbiddenEntryPoint,HttpStatusEntryPoint,LoginUrlAuthenticationEntryPoint,NoOpAuthenticationEntryPoint
public interface AuthenticationEntryPoint
Used by
ExceptionTranslationFilter to commence an authentication scheme.-
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authException) Commences an authentication scheme.
-
Method Details
-
commence
void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authException) throws IOException, jakarta.servlet.ServletException Commences an authentication scheme.ExceptionTranslationFilterwill populate theHttpSessionattribute namedAbstractAuthenticationProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEYwith the requested target URL before calling this method.Implementations should modify the headers on the
ServletResponseas necessary to commence the authentication process.- Parameters:
request- that resulted in anAuthenticationExceptionresponse- so that the user agent can begin authenticationauthException- that caused the invocation- Throws:
IOExceptionjakarta.servlet.ServletException
-