Class UserAuthenticationInfo

java.lang.Object
com.iizix.server.user.UserAuthenticationInfo
All Implemented Interfaces:
IUserAuthenticationInfo

public final class UserAuthenticationInfo extends Object implements IUserAuthenticationInfo
User authentication information with the authentication result.
Author:
Christopher Mindus
  • Field Details

    • EXTERNAL_USER

      public static final UserAuthenticationInfo EXTERNAL_USER
      The external user being used at initial application start.
    • result

      public final SigninResult result
      The result of the user authentication.
  • Method Details

    • getSigninResult

      public SigninResult getSigninResult()
      Gets the result of the user authentication.
      Specified by:
      getSigninResult in interface IUserAuthenticationInfo
      Returns:
      The sign in result.
    • getAuthenticatedUser

      public AuthenticatedUser getAuthenticatedUser()
      Gets the authenticated user information.
      Specified by:
      getAuthenticatedUser in interface IUserAuthenticationInfo
      Returns:
      The information, or null if user was not authenticated.
    • getHoldMillis

      public long getHoldMillis()
      Gets the length of the hold this failed attempt started: the account reached the limit of failed sign-ins and is held for this time, during which no attempt is evaluated (AccountHold). The caller that has the client's address tells it as a security event.
      Returns:
      The hold in milliseconds, zero when the attempt started none.