Class StandardAuthenticationEntryPoint

java.lang.Object
org.apache.nifi.web.security.StandardAuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint

public class StandardAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
Standard Authentication Entry Point delegates to Bearer Authentication Entry Point and performs additional processing
  • Field Details

  • Constructor Details

    • StandardAuthenticationEntryPoint

      public StandardAuthenticationEntryPoint(org.springframework.security.oauth2.server.resource.web.BearerTokenAuthenticationEntryPoint bearerTokenAuthenticationEntryPoint)
  • Method Details

    • commence

      public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException
      Commence exception handling with handling for OAuth2 Authentication Exceptions using Bearer Token implementation
      Specified by:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Parameters:
      request - HTTP Servlet Request
      response - HTTP Servlet Response
      exception - Authentication Exception
      Throws:
      IOException - Thrown on response processing failures
    • sendErrorMessage

      private void sendErrorMessage(jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException
      Throws:
      IOException
    • getErrorMessage

      private String getErrorMessage(jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
    • removeAuthorizationBearerCookie

      private void removeAuthorizationBearerCookie(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)