org.springframework.security.web.authentication
Class WebAuthenticationDetails

java.lang.Object
  extended by org.springframework.security.web.authentication.WebAuthenticationDetails
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetails

public class WebAuthenticationDetails
extends Object
implements Serializable

A holder of selected HTTP details related to a web authentication request.

See Also:
Serialized Form

Constructor Summary
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
 boolean equals(Object obj)
           
 String getRemoteAddress()
          Indicates the TCP/IP address the authentication request was received from.
 String getSessionId()
          Indicates the HttpSession id the authentication request was received from.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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(Object obj)
Overrides:
equals in class Object

getRemoteAddress

public String getRemoteAddress()
Indicates the TCP/IP address the authentication request was received from.

Returns:
the address

getSessionId

public String getSessionId()
Indicates the HttpSession id the authentication request was received from.

Returns:
the session ID

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object