Package ubic.gemma.rest.security
Class RestAuthEntryPoint
- java.lang.Object
-
- ubic.gemma.rest.security.RestAuthEntryPoint
-
- All Implemented Interfaces:
Aware
,org.springframework.security.web.AuthenticationEntryPoint
,ServletConfigAware
@Component public class RestAuthEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint, ServletConfigAware
Implementation ofAuthenticationEntryPoint
for the RESTful API to handle authentication.This is used in applicationContext-ws-rest.xml as part of Spring Security HTTP configuration.
-
-
Constructor Summary
Constructors Constructor Description RestAuthEntryPoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
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)
void
setServletConfig(javax.servlet.ServletConfig servletConfig)
-
-
-
Constructor Detail
-
RestAuthEntryPoint
@Autowired public RestAuthEntryPoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
commence
public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException
- Specified by:
commence
in interfaceorg.springframework.security.web.AuthenticationEntryPoint
- Throws:
IOException
-
setServletConfig
public void setServletConfig(javax.servlet.ServletConfig servletConfig)
- Specified by:
setServletConfig
in interfaceServletConfigAware
-
-