Package org.apache.nifi.web.security
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNiFiWebAuthenticationDetails
(jakarta.servlet.http.HttpServletRequest request) -
Method Summary
Methods inherited from class org.springframework.security.web.authentication.WebAuthenticationDetails
getRemoteAddress, getSessionId
-
Field Details
-
FORWARD_FOR_HEADER
- See Also:
-
userAgent
-
forwardedFor
-
-
Constructor Details
-
NiFiWebAuthenticationDetails
public NiFiWebAuthenticationDetails(jakarta.servlet.http.HttpServletRequest request)
-
-
Method Details
-
getUserAgent
Get User Agent can be null when the User-Agent header is not provided- Returns:
- User Agent
-
getForwardedFor
Get Forwarded For addresses can be null when the X-Forwarded-For header is not provided- Returns:
- Forwarded For addresses
-
equals
- Overrides:
equals
in classorg.springframework.security.web.authentication.WebAuthenticationDetails
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.springframework.security.web.authentication.WebAuthenticationDetails
-
toString
- Overrides:
toString
in classorg.springframework.security.web.authentication.WebAuthenticationDetails
-