com.sas.hls.security.user
Class LoginInfo

java.lang.Object
  extended by com.sas.hls.security.user.LoginInfo
All Implemented Interfaces:
Serializable

public class LoginInfo
extends Object
implements Serializable

A data transfer object containing information about the last login and how many login attempts have been made for a particular user since their last successful login.

See Also:
Serialized Form

Constructor Summary
LoginInfo()
          Zero-arg constructor.
 
Method Summary
 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()
          Get the number of times this user has logged into the system.
 void setLastLogin(Date lastLogin)
          Set the date of the last login of this user.
 void setLoginAttempts(long loginAttempts)
          Set the number of login attempts since the last successful login of the user.
 void setLoginCount(long loginCount)
          Set the number of times this user has logged into the system.
 String toString()
          Return a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoginInfo

public LoginInfo()
Zero-arg constructor.

Method Detail

getLoginCount

public long getLoginCount()
Get the number of times this user has logged into the system.

Returns:
The number of times this user has logged into the system.

setLoginCount

public void setLoginCount(long loginCount)
Set the number of times this user has logged into the system.

Parameters:
loginCount - he number of times this user has logged into the system.

getLastLogin

public Date getLastLogin()
Get the date of the last login of this user.

Returns:
The date of the last login of this user.

setLastLogin

public void setLastLogin(Date lastLogin)
Set the date of the last login of this user.

Parameters:
lastLogin - The date of the last login of this user.

getLoginAttempts

public long getLoginAttempts()
Get the number of login attempts since the last successful login of the user.

Returns:
the number of login attempts since the last successful login of the user.

setLoginAttempts

public void setLoginAttempts(long loginAttempts)
Set the number of login attempts since the last successful login of the user.

Parameters:
loginAttempts - the number of login attempts since the last successful login of the user.

toString

public String toString()
Return a string representation of the object.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright (c) 2014, SAS Institute Inc., Cary, NC, USA