The VGSecurityRuntime type exposes the following members.

Constructors

  NameDescription
Public methodVGSecurityRuntime()()()()
Creates a new instance of VGSecurityRuntime and use the repository defined as default in the Visual Guard configuration file.
Public methodVGSecurityRuntime(Guid)
Creates a new instance of VGSecurityRuntime for the specified application in the default repository.
Public methodVGSecurityRuntime(String)
Creates a new instance of VGSecurityRuntime for the specified repository name.
Public methodVGSecurityRuntime(VGSecurityRuntime)
Creates a new instance of VGSecurityRuntime based on an existing runtime.
Public methodVGSecurityRuntime(String, Guid)
Creates a new instance of VGSecurityRuntime for the specified repository name and application id.
Public methodVGSecurityRuntime(VGSecurityRuntime, Guid)
Creates a new instance of VGSecurityRuntime based on an existing runtime and specifies the application managed by the new runtime.

Methods

  NameDescription
Public methodAuthenticate(VGAdfsServer)
Public methodAuthenticate(VGICredential)
Authenticate the user by the VGICredential
Public methodAuthenticate(String, String)
Authenticates a user by using Visual Guard or Database authentication mode.
Public methodAuthenticate(String, String, VGAuthenticationMode)
Authenticates a user by using the specified authentication mode.
Public methodAuthenticate(VGAdfsServer, String, String)
Authenticates a federated user
Public methodChangePassword(String, String, String)
Change the password of the current user, the runtime need to have a Principal. The current user needs to support password system.
Public methodChangePassword(String, String, String, String)
Changes the password of the user.
Public methodChangePassword(VGICredential, String, String, String)
Changes the password of the user.
Public methodChangePasswordQuestionAndAnswer(String, String, String)
Changes the password question and answer of the user.
Public methodChangePasswordQuestionAndAnswer(VGMembershipUser, String, String)
Public methodChangePasswordQuestionAndAnswer(String, String, String, String)
Changes the password question and answer of the user.
Public methodChangePasswordQuestionAndAnswer(VGMembershipUser, VGICredential, String, String)
Public methodChangePasswordQuestionAndAnswer(VGMembershipUser, String, String, String)
Public methodCheckContext
Check if the context of Visual Guard is valid.
Public methodCheckCredential
Checks if credentials are valid but does not load security permissions or change current principal.
Public methodStatic memberCreateRuntimeForFile(String, VGAuthenticationMode, Boolean, Guid, String, Int32)
Creates a new instance of the VGSecurityRuntime class and initializes a connection to a repository based on files.
Public methodStatic memberCreateRuntimeForFile(String, VGAuthenticationMode, Boolean, Guid, String, Int32, Boolean)
Creates a new instance of the VGSecurityRuntime class and initializes a connection to a repository based on files.
Public methodStatic memberCreateRuntimeForOracle(String, VGAuthenticationMode, Boolean, Guid, String, String, Int32)
Creates a new instance of the VGSecurityRuntime class and initializes a connection to a repository using Oracle as the backing store.
Public methodStatic memberCreateRuntimeForOracle(String, VGAuthenticationMode, Boolean, Guid, String, String, Int32, Boolean)
Creates a new instance of the VGSecurityRuntime class and initializes a connection to a repository using Oracle as the backing store.
Public methodStatic memberCreateRuntimeForSQLServer(String, VGAuthenticationMode, Boolean, Guid, String, Int32)
Creates a new instance of the VGSecurityRuntime class and initializes a connection to a repository using SQLServer as the backing store.
Public methodStatic memberCreateRuntimeForSQLServer(String, VGAuthenticationMode, Boolean, Guid, String, Int32, Boolean)
Creates a new instance of the VGSecurityRuntime class and initializes a connection to a repository using SQLServer as the backing store.
Public methodStatic memberCreateRuntimeForVGServer(String, String, Guid, Boolean, Int32)
Public methodStatic memberCreateRuntimeForVGServer(String, String, VGAuthenticationMode, Boolean, Guid, Int32)
Public methodDispose
Releases all resources used by the current instance
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
The destructor of the object.
(Overrides Object..::..Finalize()()()().)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetPasswordQuestion
Gets the password question of a specified user.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsAnonymousSessionSupported
Indicates whether an anonymous sessions are supported by the current application.
Public methodLoadAnomymousSecurity()()()()
Loads the permissions for an anonymous session.
Public methodLoadAnomymousSecurity(IIdentity)
Loads the permission for an anonymous session associated to the specified windows identity
Public methodLoadAnomymousSecurity(VGIIdentity)
Public methodLoadSecurity()()()()
Loads the permission of the GetCurrent()()()() identity.
Public methodLoadSecurity(VGToken)
Load a principal by VGToken
Public methodLoadSecurity(IIdentity)
Loads the permission of the given IIdentity object.
Public methodLoadSecurity(String)
Loads the permission of the user identified by the user name.
Public methodLoadSecurity(String, VGAuthenticationMode)
Loads the permissions of a user identified by the user name by using the specified authentication mode.
Public methodLoadSecurity(String, VGAuthenticationMode, Boolean)
Loads the permission of the given user name.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResetPassword(String) Obsolete.
Resets a user's password to a new, automatically generated password.
Public methodResetPassword(String, Boolean) Obsolete.
Resets a user's password to a new, automatically generated password.
Public methodResetPassword(String, String) Obsolete.
Resets a user's password to a new, automatically generated password.
Public methodSetSecurity(Object)
Sets the security for the specified object.
Public methodSetSecurity(Object, Type)
Sets the security corresponding to the specified type for the specified object.
Public methodSignOut
Unloads the roles and permissions granted to the current user. If you are in Web application use VGFormsAuthentication.SignOut() method
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodValidateUser(VGAdfsServer)
Public methodValidateUser(VGICredential)
Public methodValidateUser(String, String)
Verifies that the supplied user name and password are valid by using the authentication mode VisualGuard or Database mode.
Public methodValidateUser(String, String, VGAuthenticationMode)
Verifies that the supplied user name and password are valid.
Public methodValidateUser(VGAdfsServer, String, String)
Public methodWriteLog
Writes a new log entry as defined in the specified VGLogEntry object in the repository represented by this runtime.

Properties

  NameDescription
Public propertyActions
Public propertyAdfsServers
Public propertyAdministration
Gets a VGGroupsInstance object used to manage user membership in groups for the application managed by this runtime
Public propertyAllowedAuthenticationModes
Gets the authentication modes defined in the configuration file and supported by the repository.
Public propertyApplication
Gets a VGApplicationInstance object used to manage Application informations
Public propertyApplicationId
Gets or sets the id of the application managed by Visual Guard
Public propertyApplicationName
gets the name of the application managed by Visual Guard
Public propertyApplicationType
Indicates the type of application managed by Visual Guard
Public propertyAuthenticationState
Gets a VGAuthenticationState object representing the last authentication state.
Public propertyAuthorizationState
Gets a VGAuthorizationState object representing the last authorization state.
Public propertyConfigurationFile
Gets or sets the configuration file used to load information from the repository
Public propertyConnectionType
Public propertyConsecutiveBadLoginsAllowed
Gets or sets the maximum number of consecutive invalid password.
Public propertyDeployment
Public propertyDomains
Public propertyEnabled
Gets or sets a value indicating if the Visual Guard security is enabled.
Public propertyEnablePasswordReset
Gets a value indicating whether the current membership provider is configured to allow users to reset their passwords.
Public propertyEventLogs
Public propertyGraceLoginsAllowed
Gets a value indicating if theire is Consecutive Bad Logins Allowed.
Public propertyGroups
Gets a VGGroupsInstance object used to manage user membership in groups for the application managed by this runtime
Public propertyHistoryLength
Gets a value indicating the History Length of the password.
Public propertyIdentityModules
Public propertyIncludeWindowsGroups
Gets or sets a Boolean value that indicates whether role granted to Windows Groups are included to the list of role of a user.
Public propertyLogEnabled
Gets a value indicating whether the log is enabled for the repository.
Public propertyMaxInvalidPasswordAttempts
Gets the number of invalid password or password-answer attempts allowed before the membership user is locked out.
Public propertyMembership
Gets a VGMembershipInstance object used to manage membership information for the application managed by this runtime
Public propertyMinRequiredNonAlphanumericCharacters
Gets the minimum number of special characters that must be present in a valid password.
Public propertyMinRequiredPasswordLength
Gets the minimum length required for a password.
Public propertyModules
Manage VG modules
Public propertyPasswordAttemptWindow
Gets the number of minutes in which a maximum number of invalid password or password-answer attempts are allowed before the membership user is locked out.
Public propertyPasswordPolicy
Manager the password policy
Public propertyPasswordPolicyMessage
Gets the message displayed to the user if the password does not match the validation rules.
Public propertyPasswordStrengthRegularExpression
Gets the regular expression used to evaluate if the password.
Public propertyPasswordValidation
Gets or sets the configured regular expression used for validating the password format.
Public propertyPermissions
Gets a VGRolesInstance object used to manage user membership in roles for the application managed by this runtime
Public propertyPermissionSets
Gets a VGRolesInstance object used to manage user membership in roles for the application managed by this runtime
Public propertyPrincipal
Gets the VGIPrincipal representing the security context of current user on whose behalf the application is running. this property is null (Nothing) before calling the or methods or is the authorization process has failed.
Public propertyProfile
Public propertyReplaceCurrentPrincipal
Gets or sets a value indicating if the principal of the current thread ().
Public propertyRepository
Gets a VGRepositoryInstance object used to manage repository informations
Public propertyRepositoryDescription
Get the description of the repository used by the runtime.
Public propertyRepositoryName
Specifies the name of the repository used by the runtime.
Public propertyRequiresQuestionAndAnswer
Gets a value indicating whether the default membership provider requires the user to answer a password question for password reset and retrieval.
Public propertyRequiresUniqueEmail
Gets a value indicating whether the repository is configured to require a unique e-mail address for each user name.
Public propertyRoles
Gets a VGRolesInstance object used to manage user membership in roles for the application managed by this runtime
Public propertyRuntimeModules
Public propertySupportedAuthenticationModes
Gets the authentication modes supported by the repository.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the VGSecurityRuntime.
Public propertyTokens
Public propertyTools
Get a tools of Visual-Guard
Public propertyUseAutomaticInterception
Gets or sets a boolean value indicating whether Visual Guard can use its automatic interception mechanism to intercept the instantication of Forms and automatically set the security to this instance.
Public propertyWebPortals
Public propertyWebUserInterfaces
Get a Web User Interface Manager

Events

  NameDescription
Public eventAcceptOfflineMode
Occurs after VGRepository is created.
Public eventCheckForOnlineStatus
Occurs after VGRepository is created.
Public eventCheckVersion
Allows to check if the version of the repository permissions is compatible with the version of the application.
Public eventGroupsLoading
Occurs before the permissions are loaded and allows filtering the list of user's groups for contextual group selection.
Public eventPermissionsLoading
Occurs before the permissions are loaded and allows filtering the list of user's roles.
Public eventSecurityError
Occurs when Visual Guard loads security actions and a type are unknown or when Visual Guard sets the security of an object and an exception occurs.
Public eventSecurityLoaded
Occurs after the security permissions are loaded.
Public eventSignedOut
Occurs when the current user is signed out.
Public eventUnableToSaveOffline
Occurs when you have a error during save offlinemode conposant.
Public eventValidatingPassword
Occurs when a password is changed or is reset.

See Also