org.acegisecurity.ui
Class WebAuthenticationDetails

java.lang.Object
  extended by org.acegisecurity.ui.WebAuthenticationDetails
All Implemented Interfaces:
Serializable, SessionIdentifierAware

public class WebAuthenticationDetails
extends Object
implements SessionIdentifierAware, Serializable

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

Version:
$Id: WebAuthenticationDetails.java 1496 2006-05-23 13:38:33Z benalex $
Author:
Ben Alex
See Also:
Serialized Form

Constructor Summary
protected WebAuthenticationDetails()
           
  WebAuthenticationDetails(javax.servlet.http.HttpServletRequest request)
          Constructor.
 
Method Summary
protected  void doPopulateAdditionalInformation(javax.servlet.http.HttpServletRequest request)
          Provided so that subclasses can populate additional information.
 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)
Constructor.

NB: This constructor will cause a HttpSession to be created (this is considered reasonable as all Acegi Security authentication requests rely on HttpSession to store the Authentication between requests

Parameters:
request - that the authentication request was received from

WebAuthenticationDetails

protected WebAuthenticationDetails()
Method Detail

doPopulateAdditionalInformation

protected void doPopulateAdditionalInformation(javax.servlet.http.HttpServletRequest request)
Provided so that subclasses can populate additional information.

Parameters:
request - that the authentication request was received from

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.

Specified by:
getSessionId in interface SessionIdentifierAware
Returns:
the session ID

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.