Package security
Class UnauthorizedEntryPoint
java.lang.Object
security.UnauthorizedEntryPoint
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
public class UnauthorizedEntryPoint
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
AuthenticationEntryPoint
that rejects all requests with an unauthorized error message.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
commence
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
-
Constructor Details
-
UnauthorizedEntryPoint
public UnauthorizedEntryPoint()
-
-
Method Details
-
commence
public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException - Specified by:
commence
in interfaceorg.springframework.security.web.AuthenticationEntryPoint
- Throws:
IOException
-