Class WebAuthenticationDetails
- java.lang.Object
-
- org.springframework.security.web.authentication.WebAuthenticationDetails
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails
public class WebAuthenticationDetails extends java.lang.Object implements java.io.Serializable
A holder of selected HTTP details related to a web authentication request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebAuthenticationDetails(javax.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getRemoteAddress()
Indicates the TCP/IP address the authentication request was received from.java.lang.String
getSessionId()
Indicates theHttpSession
id the authentication request was received from.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
WebAuthenticationDetails
public WebAuthenticationDetails(javax.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 Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getRemoteAddress
public java.lang.String getRemoteAddress()
Indicates the TCP/IP address the authentication request was received from.- Returns:
- the address
-
getSessionId
public java.lang.String getSessionId()
Indicates theHttpSession
id the authentication request was received from.- Returns:
- the session ID
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-