Visual Guard Class Library Documentation

VGSecurityManager.ValidateUser Method 

Verifies that the supplied user name and password are valid.

public static VGAuthenticationState ValidateUser(
   String username,
   String password
);

Parameters

username
The name of the user to be validated.
password
The password for the specified user.

Return Value

a VGAuthenticationState indicating if the validation succeeds or not.

Exceptions

Exception Type Condition
ArgumentNullException username or password is null.
ArgumentException username is empty.

or

user or password is longer than 64 characters.
VGConfigurationException The configuration file is not valid

or

A problem occurs during the connection to the repository.

or

The version of the repository or the version of the permissions is not supported by the application.

See Also

VGSecurityManager Class | Novalys.VisualGuard.Security Namespace