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). -
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
-
-
Method Details
-
equals
-
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
-
hashCode
public int hashCode() -
toString
-