Visual Guard Class Library Documentation

VGSecurityRuntime.Authenticate Method (String, String)

Authenticates a user by using Visual Guard or Database authentication mode.

public VGAuthenticationState Authenticate(
   String name,
   String password
);

Parameters

name
the name of the user.
password
the password of the given user.

Return Value

A VGAuthenticationState indicating if the authentication succeeds or not.

Remarks

For more information about this method, you can see Authenticate.

Exceptions

Exception Type Condition
ArgumentException the name is an empty string or is longer than 64 characters.

- or-

the password is longer than 64 characters.
ArgumentNullException The name or the password is null (Nothing in VB).
NotSupportedException

the repository does not support Visual Guard or Database authentication mode.

The name is empty.

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

VGSecurityRuntime Class | Novalys.VisualGuard.Security Namespace | VGSecurityRuntime.Authenticate Overload List