Class Http401AuthenticationEntryPoint
- java.lang.Object
- org.springframework.boot.autoconfigure.security.Http401AuthenticationEntryPoint
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
public class Http401AuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
AuthenticationEntryPoint that sends a 401 and Parameterized by the value of theWWW-Authenticate
header. Like theBasicAuthenticationEntryPoint
but more flexible.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description Http401AuthenticationEntryPoint(String headerValue)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
Constructor Detail
Http401AuthenticationEntryPoint
public Http401AuthenticationEntryPoint(String headerValue)
Method Detail
commence
public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException, javax.servlet.ServletException
- Specified by:
commence
in interfaceorg.springframework.security.web.AuthenticationEntryPoint
- Throws:
IOException
javax.servlet.ServletException