Package org.dspace.app.rest.security
Class DSpace401AuthenticationEntryPoint
java.lang.Object
org.dspace.app.rest.security.DSpace401AuthenticationEntryPoint
- All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint
public class DSpace401AuthenticationEntryPoint
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint
Spring security authentication entry point to return a 401 response for unauthorized requests
This class is used in the
WebSecurityConfiguration class.-
Constructor Summary
ConstructorsConstructorDescriptionDSpace401AuthenticationEntryPoint(RestAuthenticationService restAuthenticationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
-
Constructor Details
-
DSpace401AuthenticationEntryPoint
-
-
Method Details
-
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:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint- Throws:
IOExceptionjavax.servlet.ServletException
-