Class ApiAuthenticationEntryPoint

  • All Implemented Interfaces:
    org.springframework.security.web.AuthenticationEntryPoint

    public class ApiAuthenticationEntryPoint
    extends Object
    implements org.springframework.security.web.AuthenticationEntryPoint
    Implementation of AuthenticationEntryPoint that returns a JSON object matching Studio's API specs
    Since:
    4.0
    Author:
    joseross
    • Field Detail

      • objectMapper

        protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • ApiAuthenticationEntryPoint

        public ApiAuthenticationEntryPoint()
    • 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 interface org.springframework.security.web.AuthenticationEntryPoint
        Throws:
        IOException