org.acegisecurity.captcha
Class CaptchaSecurityContextImpl

java.lang.Object
  extended by org.acegisecurity.context.SecurityContextImpl
      extended by org.acegisecurity.captcha.CaptchaSecurityContextImpl
All Implemented Interfaces:
Serializable, CaptchaSecurityContext, SecurityContext

public class CaptchaSecurityContextImpl
extends SecurityContextImpl
implements CaptchaSecurityContext

Default CaptchaSecurityContext implementation

Author:
mag
See Also:
Serialized Form

Constructor Summary
CaptchaSecurityContextImpl()
           
 
Method Summary
 boolean equals(Object obj)
           
 int getHumanRestrictedResourcesRequestsCount()
          DOCUMENT ME!
 long getLastPassedCaptchaDateInMillis()
          DOCUMENT ME!
 int hashCode()
           
 void incrementHumanRestrictedRessoucesRequestsCount()
          Method to increment the human Restricted Resrouces Requests Count;
 boolean isHuman()
          DOCUMENT ME!
 void setHuman()
          Reset the lastPassedCaptchaDate and count.
 
Methods inherited from class org.acegisecurity.context.SecurityContextImpl
getAuthentication, setAuthentication, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.acegisecurity.context.SecurityContext
getAuthentication, setAuthentication
 

Constructor Detail

CaptchaSecurityContextImpl

public CaptchaSecurityContextImpl()
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class SecurityContextImpl

getHumanRestrictedResourcesRequestsCount

public int getHumanRestrictedResourcesRequestsCount()
Description copied from interface: CaptchaSecurityContext
DOCUMENT ME!

Specified by:
getHumanRestrictedResourcesRequestsCount in interface CaptchaSecurityContext
Returns:
number of human restricted resources requests since the last passed captcha.

getLastPassedCaptchaDateInMillis

public long getLastPassedCaptchaDateInMillis()
Description copied from interface: CaptchaSecurityContext
DOCUMENT ME!

Specified by:
getLastPassedCaptchaDateInMillis in interface CaptchaSecurityContext
Returns:
the date of the last passed Captcha in millis, 0 if the user never passed captcha.

hashCode

public int hashCode()
Overrides:
hashCode in class SecurityContextImpl

incrementHumanRestrictedRessoucesRequestsCount

public void incrementHumanRestrictedRessoucesRequestsCount()
Method to increment the human Restricted Resrouces Requests Count;

Specified by:
incrementHumanRestrictedRessoucesRequestsCount in interface CaptchaSecurityContext

isHuman

public boolean isHuman()
Description copied from interface: CaptchaSecurityContext
DOCUMENT ME!

Specified by:
isHuman in interface CaptchaSecurityContext
Returns:
true if the current user has already passed a captcha.

setHuman

public void setHuman()
Reset the lastPassedCaptchaDate and count.

Specified by:
setHuman in interface CaptchaSecurityContext


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