Class LoginInfo

java.lang.Object
com.sas.lsaf.security.user.LoginInfo
All Implemented Interfaces:
Serializable

public class LoginInfo extends Object implements Serializable
User account login information that details the last login and how many login attempts have been made for a user account since the last successful login.
Since:
1.2
See Also:
  • Constructor Details

    • LoginInfo

      public LoginInfo(Date lastLogin, long loginAttempts)
      Constructor.
      Parameters:
      lastLogin - the date of the last login of the user account.
      loginAttempts - the number of login attempts since the last successful login of the user account.
  • Method Details

    • getLastLogin

      public Date getLastLogin()
      Gets the date of the last login of the user account.
      Returns:
      The date of the last login of the user account.
    • getLoginAttempts

      public long getLoginAttempts()
      Gets the number of login attempts since the last successful login of the user account.
      Returns:
      The number of login attempts since the last successful login of the user account.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object