com.atlassian.confluence.security.login
Interface LoginInfo


public interface LoginInfo

Information about a user's login history

Since:
3.3

Method Summary
 int getCurrentFailedLoginCount()
          Return the number of failed login attempts for the username userName.
 Date getLastFailedLoginDate()
           
 Date getLastSuccessfulLoginDate()
           
 int getTotalFailedLoginCount()
           
 boolean requiresElevatedSecurityCheck()
          This is called to see whether the user requires an extended security check (such as CAPTCHA)
 

Method Detail

requiresElevatedSecurityCheck

boolean requiresElevatedSecurityCheck()
This is called to see whether the user requires an extended security check (such as CAPTCHA)

Returns:
true if the user with the user name userName requires an extended security check

getCurrentFailedLoginCount

int getCurrentFailedLoginCount()
Return the number of failed login attempts for the username userName.

Returns:
number of failed login attempts

getTotalFailedLoginCount

int getTotalFailedLoginCount()
Returns:
the number of total number of times the user has failed to login ever or -1 if its not recorded

getLastSuccessfulLoginDate

Date getLastSuccessfulLoginDate()
Returns:
the date of the last successful login or null if its not been recorded

getLastFailedLoginDate

Date getLastFailedLoginDate()
Returns:
the date of the last failed login or null if its not known


Copyright © 2003-2011 Atlassian. All Rights Reserved.