Creates a new instance of the VGSecurityRuntime class and initializes a connection to a repository using Oracle as the backing store.
Namespace: Novalys.VisualGuard.SecurityAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)
Syntax
C# |
---|
public static VGSecurityRuntime CreateRuntimeForOracle( string repositoryName, VGAuthenticationMode supportedAuthenticationModes, bool anonymousSessionSupported, Guid applicationId, string connectionString, string schema, int cacheDuration ) |
Visual Basic |
---|
Public Shared Function CreateRuntimeForOracle ( repositoryName As String, supportedAuthenticationModes As VGAuthenticationMode, anonymousSessionSupported As Boolean, applicationId As Guid, connectionString As String, schema As String, cacheDuration As Integer ) As VGSecurityRuntime |
Parameters
- repositoryName
- Type: System..::..String
the name of the repository
- supportedAuthenticationModes
- Type: Novalys.VisualGuard.Security..::..VGAuthenticationMode
A VGAuthenticationMode indicating the authentication mode supported by the security runtime. This value must be equal or a subset of the value defined in the repository.
- anonymousSessionSupported
- Type: System..::..Boolean
A boolean value indicating whether the security runtime supports anonymous session.
- applicationId
- Type: System..::..Guid
The Visual Guard unique identifier of the application managed by the security runtime.
- connectionString
- Type: System..::..String
The connection string used to establish the connection to the database containing the repository tables.
- schema
- Type: System..::..String
the name of the Oracle schema containing the Visual Guard database objects. The name of the Oracle schema is case sensitive (in most of case the value should be uppercased).
- cacheDuration
- Type: System..::..Int32
The length of time in seconds that Visual Guard caches a repository item before trying to reload them from the repository.
Return Value
Type: VGSecurityRuntimeA new instance of the VGSecurityRuntime class.
Remarks
this method requires to deploy the assembly "Novalys.VisualGuard.Security.Oracle.dll" with your application.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | repositoryName or connectionString or schema is null (Nothing). |
System..::..ArgumentException | repositoryName is an empty string.
- or- supportedAuthenticationModes is equal to None. |
System..::..ArgumentOutOfRangeException | cacheDuration is negative. |