Class JWTAuthenticationEntryPoint

java.lang.Object
com.almis.awe.rest.security.JWTAuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint

public class JWTAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
Custom Authentication EntryPoint. Used to handle exceptions in authentication process in awe-rest api.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JWTAuthenticationEntryPoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • JWTAuthenticationEntryPoint

      public JWTAuthenticationEntryPoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • commence

      public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException
      Specified by:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Throws:
      IOException