AuthenticateCredentials(String, String, UserRoles):IUser
Checks whether the indicated access data is correct and the user has the indicated user roles.
Access data for a user can be checked by means of this method. Furthermore, user roles the user is to have can be transferred to the method.
If the connection to the server is interrupted during the check, then an exception of the type InvalidSessionException is triggered.
If the access data is not correct or the user does not exist or does not have the indicated roles, then NULL is returned.
Parameter
- userName
Type: System.String
This parameter is the username of the user for whom the access data is to be checked.
- password
Type: System.String
This parameter is the password of the user for whom the access data is to be checked.
- expectedRoles
Type: UserRoles
This parameter indicates the roles which the user to be authenticated must have.