Class UserAuthenticationInfo
java.lang.Object
com.iizix.server.user.UserAuthenticationInfo
- All Implemented Interfaces:
IUserAuthenticationInfo
User authentication information with the authentication result.
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UserAuthenticationInfoThe external user being used at initial application start.final SigninResultThe result of the user authentication.Method Summary
Modifier and TypeMethodDescriptionGets the authenticated user information.longGets 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).Gets the result of the user authentication.
Field Details
EXTERNAL_USER
The external user being used at initial application start.result
The result of the user authentication.
Method Details
getSigninResult
Gets the result of the user authentication.- Specified by:
getSigninResultin interfaceIUserAuthenticationInfo- Returns:
- The sign in result.
getAuthenticatedUser
Gets the authenticated user information.- Specified by:
getAuthenticatedUserin interfaceIUserAuthenticationInfo- 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.