com.atlassian.jira.bc.security.login
Class LoginInfoImpl
java.lang.Object
com.atlassian.jira.bc.security.login.LoginInfoImpl
- All Implemented Interfaces:
- LoginInfo
public class LoginInfoImpl
- extends java.lang.Object
- implements LoginInfo
- Since:
- v4.0.1
Constructor Summary |
LoginInfoImpl(LoginInfo loginInfo,
boolean elevatedSecurityCheckRequired)
|
LoginInfoImpl(java.lang.Long lastLoginTime,
java.lang.Long previousLoginTime,
java.lang.Long lastFailedLoginTime,
java.lang.Long loginCount,
java.lang.Long currentFailedLoginCount,
java.lang.Long totalFailedLoginCount,
java.lang.Long maxAuthenticationAttemptsAllowed,
boolean elevatedSecurityCheckRequired)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LoginInfoImpl
public LoginInfoImpl(java.lang.Long lastLoginTime,
java.lang.Long previousLoginTime,
java.lang.Long lastFailedLoginTime,
java.lang.Long loginCount,
java.lang.Long currentFailedLoginCount,
java.lang.Long totalFailedLoginCount,
java.lang.Long maxAuthenticationAttemptsAllowed,
boolean elevatedSecurityCheckRequired)
LoginInfoImpl
public LoginInfoImpl(LoginInfo loginInfo,
boolean elevatedSecurityCheckRequired)
getMaxAuthenticationAttemptsAllowed
public java.lang.Long getMaxAuthenticationAttemptsAllowed()
- Specified by:
getMaxAuthenticationAttemptsAllowed
in interface LoginInfo
- Returns:
- the maximum number of failed authentication attempts that are allowed for this user or null if its not applicable.
getLastLoginTime
public java.lang.Long getLastLoginTime()
- Specified by:
getLastLoginTime
in interface LoginInfo
- Returns:
- a miliseconds UTC time of the last successful login or null if its not been recorded
getPreviousLoginTime
public java.lang.Long getPreviousLoginTime()
- Specified by:
getPreviousLoginTime
in interface LoginInfo
- Returns:
- a miliseconds UTC time of the previously successful login or null if its not been recorded
getLoginCount
public java.lang.Long getLoginCount()
- Specified by:
getLoginCount
in interface LoginInfo
- Returns:
- the number of times a user has logged in or null if its not recorded
getCurrentFailedLoginCount
public java.lang.Long getCurrentFailedLoginCount()
- Specified by:
getCurrentFailedLoginCount
in interface LoginInfo
- Returns:
- the number of times the user has failed to login since this value was reset on a sucessful login or null
if its not recorded
getTotalFailedLoginCount
public java.lang.Long getTotalFailedLoginCount()
- Specified by:
getTotalFailedLoginCount
in interface LoginInfo
- Returns:
- the number of total number of times the user has failed to login ever or null if its not recorded
getLastFailedLoginTime
public java.lang.Long getLastFailedLoginTime()
- Specified by:
getLastFailedLoginTime
in interface LoginInfo
- Returns:
- the date of the last failed login or null if its not known
isElevatedSecurityCheckRequired
public boolean isElevatedSecurityCheckRequired()
- Specified by:
isElevatedSecurityCheckRequired
in interface LoginInfo
- Returns:
- true if the user has failed to authenticated more than a certain number of times or the configuration demands that it be done every time. The user will now be required
to pass an elevated security check along with user name and password.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2010 Atlassian. All Rights Reserved.