UserIdentity represents the data needed to identity a user.
It contains the authentication method that checks if the provided data can identity the user.
package | Default |
---|
authenticate(): boolean
This method should check the validity of the provided username and password in some way. In case of any authentication failure, set errorCode and errorMessage with appropriate values and return false.
boolean
whether the username and password are valid