Class WebAuthenticationDetailsSource

java.lang.Object
org.springframework.security.web.authentication.WebAuthenticationDetailsSource
All Implemented Interfaces:
AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,WebAuthenticationDetails>

public class WebAuthenticationDetailsSource extends Object implements AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,WebAuthenticationDetails>
Implementation of AuthenticationDetailsSource which builds the details object from an HttpServletRequest object, creating a WebAuthenticationDetails .
  • Constructor Details

    • WebAuthenticationDetailsSource

      public WebAuthenticationDetailsSource()
  • Method Details

    • buildDetails

      public WebAuthenticationDetails buildDetails(jakarta.servlet.http.HttpServletRequest context)
      Builds the WebAuthenticationDetails from the given request.
      Specified by:
      buildDetails in interface AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,WebAuthenticationDetails>
      Parameters:
      context - the HttpServletRequest object.
      Returns:
      the WebAuthenticationDetails containing information about the current request