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 theWebSecurityConfigurationclass.
-
-
Constructor Summary
Constructors Constructor Description DSpace401AuthenticationEntryPoint(RestAuthenticationService restAuthenticationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
-
-
-
Constructor Detail
-
DSpace401AuthenticationEntryPoint
public DSpace401AuthenticationEntryPoint(RestAuthenticationService restAuthenticationService)
-
-
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:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint- Throws:
IOExceptionjavax.servlet.ServletException
-
-