Visual Guard Class Library Documentation

VGSecurityRuntime.CheckCredential Method 

Checks if credentials are valid but does not load security permissions or change current principal.

public VGAuthenticationState CheckCredential(
   String name,
   String password,
   VGAuthenticationMode mode
);

Parameters

name
the name of the user.
password
the password of the user
mode
A VGAuthenticationMode value indicating the authentication mode used to validate the user.

Return Value

true if the credentials are valid, false otherwise.

Remarks

this method does not update credential statistic

Exceptions

Exception Type Condition
ArgumentException The value of mode is equal to None or is a combination of several modes.

- or-

the name is an empty string or is longer than 64 characters or contains invalid chars ('\', '/', '?', '*', '%', ';', ''', '"', ':', '|', '[', ']', '+', '=', ',').

- or-

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

the repository does not support Visual Guard 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