public class LoginInfo extends Object implements Serializable
Constructor and Description |
---|
LoginInfo(long loginAttempts,
Date lastLogin)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Date |
getLastLogin()
Get the date of the last login of this user.
|
long |
getLoginAttempts()
Get the number of login attempts since the last successful login of the user.
|
long |
getLoginCount()
Deprecated.
As of version 1.7.2, this method is deprecated and there is no replacement.
A replacement will be added in a future release.
|
void |
setLastLogin(Date lastLogin)
Deprecated.
As of Java API 1.8. There is no replacement. Last login is immutable.
|
void |
setLoginAttempts(long loginAttempts)
Deprecated.
As of Java API 1.8. There is no replacement. This value is immutable.
|
void |
setLoginCount(long loginCount)
Deprecated.
As of version 1.7.2, this method is deprecated and there is no replacement.
A replacement will be added in a future release.
|
String |
toString()
Return a string representation of the object.
|
public LoginInfo(long loginAttempts, Date lastLogin)
@Deprecated public long getLoginCount()
@Deprecated public void setLoginCount(long loginCount)
loginCount
- he number of times this user has logged into the system.public Date getLastLogin()
@Deprecated public void setLastLogin(Date lastLogin)
lastLogin
- The date of the last login of this user.public long getLoginAttempts()
@Deprecated public void setLoginAttempts(long loginAttempts)
loginAttempts
- the number of login attempts since the last successful login of the user.public String toString()
toString
in class Object
Object.toString()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA