Class WebAuthenticationDetails
java.lang.Object
org.springframework.security.web.authentication.WebAuthenticationDetails
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails
A holder of selected HTTP details related to a web authentication request.
- See Also:
-
Constructor Summary
ConstructorDescriptionWebAuthenticationDetails
(jakarta.servlet.http.HttpServletRequest request) Records the remote address and will also set the session Id if a session already exists (it won't create one).WebAuthenticationDetails
(String remoteAddress, String sessionId) Constructor to add Jackson2 serialize/deserialize support -
Method Summary
-
Constructor Details
-
WebAuthenticationDetails
public WebAuthenticationDetails(jakarta.servlet.http.HttpServletRequest request) Records the remote address and will also set the session Id if a session already exists (it won't create one).- Parameters:
request
- that the authentication request was received from
-
WebAuthenticationDetails
Constructor to add Jackson2 serialize/deserialize support- Parameters:
remoteAddress
- remote address of current requestsessionId
- session id- Since:
- 5.7
-
-
Method Details
-
getRemoteAddress
Indicates the TCP/IP address the authentication request was received from.- Returns:
- the address
-
getSessionId
Indicates theHttpSession
id the authentication request was received from.- Returns:
- the session ID
-
equals
-
hashCode
public int hashCode() -
toString
-