Loads the permissions of the given WindowsIdentity.
Namespace:
Novalys.VisualGuard.Security.WebFormAssembly: Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 3.2.912.1 (3.2.912.01)
Syntax
C# |
---|
public VGAuthorizationState LoadSecurity( HttpContext context, WindowsIdentity identity ) |
Visual Basic (Declaration) |
---|
Public Function LoadSecurity ( _ context As HttpContext, _ identity As WindowsIdentity _ ) As VGAuthorizationState |
Parameters
- context
- Type: System.Web..::.HttpContext
A valid HttpContext representing the context for which the security is loaded.
- identity
- Type: System.Security.Principal..::.WindowsIdentity
A WindowsIdentity object for which you want to load permissions.
Return Value
A VGAuthorizationState representing the state of the authorizationExceptions
Exception | Condition |
---|---|
System..::.NotSupportedException |
the repository does not support Visual Guard authentication mode. |
System..::.ArgumentNullException |
name or context is null. |
System..::.ArgumentException |
The name is longer than 64 characters The name is empty. |
Novalys.VisualGuard.Security..::.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. |