Visual Guard Class Library Documentation

VGHttpModule.LoadSecurity Method (HttpContext, WindowsIdentity)

Loads the permissions of the given WindowsIdentity.

public VGAuthorizationState LoadSecurity(
   HttpContext context,
   WindowsIdentity identity
);

Parameters

context
A valid HttpContext representing the context for which the security is loaded.
identity
A WindowsIdentity object for which you want to load permissions.

Return Value

A VGAuthorizationState representing the state of the authorization

Exceptions

Exception Type Condition
NotSupportedException

the repository does not support Visual Guard authentication mode.

ArgumentNullException

name or context is null.

ArgumentException

The name is longer than 64 characters

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

VGHttpModule Class | Novalys.VisualGuard.Security.WebForm Namespace | VGHttpModule.LoadSecurity Overload List