Class NiFiWebAuthenticationDetails

java.lang.Object
org.springframework.security.web.authentication.WebAuthenticationDetails
org.apache.nifi.web.security.NiFiWebAuthenticationDetails
All Implemented Interfaces:
Serializable

public class NiFiWebAuthenticationDetails extends org.springframework.security.web.authentication.WebAuthenticationDetails
Standard Web Authentication Details with additional headers including User-Agent and X-Forwarded-For
See Also:
  • Field Details

  • Constructor Details

    • NiFiWebAuthenticationDetails

      public NiFiWebAuthenticationDetails(jakarta.servlet.http.HttpServletRequest request)
  • Method Details

    • getUserAgent

      public String getUserAgent()
      Get User Agent can be null when the User-Agent header is not provided
      Returns:
      User Agent
    • getForwardedFor

      public String getForwardedFor()
      Get Forwarded For addresses can be null when the X-Forwarded-For header is not provided
      Returns:
      Forwarded For addresses
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.springframework.security.web.authentication.WebAuthenticationDetails
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.springframework.security.web.authentication.WebAuthenticationDetails
    • toString

      public String toString()
      Overrides:
      toString in class org.springframework.security.web.authentication.WebAuthenticationDetails