Class OpenVpnConnectionConfigurationBuilder
Class OpenVpnConnectionConfigurationBuilder. Builder for an OpenVPN IConnection
Inherited Members
Namespace: VpnSDK
Assembly: cs.temp.dll.dll
Syntax
public class OpenVpnConnectionConfigurationBuilder : ConnectionConfigurationBuilderBase
Methods
Build()
Builds an IConnection
Declaration
public IConnectionConfiguration Build()
Returns
Type | Description |
---|---|
IConnection |
IConnectionConfiguration. |
SetCipher(OpenVpnCipherType)
Sets the OpenVPN cipher.
Declaration
public OpenVpnConnectionConfigurationBuilder SetCipher(OpenVpnCipherType cipherType)
Parameters
Type | Name | Description |
---|---|---|
Open |
cipherType | Type of the cipher. |
Returns
Type | Description |
---|---|
Open |
OpenVpnConnectionConfigurationBuilder. |
SetDoubleHopSettings(Boolean, ILocation, ILocation)
Sets the double hop settings for the OpenVPN connection.
Declaration
public OpenVpnConnectionConfigurationBuilder SetDoubleHopSettings(bool isEnabled, ILocation entryLocation, ILocation exitLocation)
Parameters
Type | Name | Description |
---|---|---|
System. |
isEnabled | A boolean indicating whether double hop is enabled. |
ILocation | entryLocation | The entry location for double hop. |
ILocation | exitLocation | The exit location for double hop. |
Returns
Type | Description |
---|---|
Open |
The OpenVpnConnectionConfigurationBuilder for method chaining. |
SetNetworkProtocol(NetworkProtocolType)
Sets the network protocol.
Declaration
public OpenVpnConnectionConfigurationBuilder SetNetworkProtocol(NetworkProtocolType protocol)
Parameters
Type | Name | Description |
---|---|---|
Network |
protocol | The protocol. |
Returns
Type | Description |
---|---|
Open |
OpenVpnConnectionConfigurationBuilder. |
SetPort(UInt16)
Sets remote port.
Declaration
public OpenVpnConnectionConfigurationBuilder SetPort(ushort port)
Parameters
Type | Name | Description |
---|---|---|
System. |
port | The port. |
Returns
Type | Description |
---|---|
Open |
OpenVpnConnectionConfigurationBuilder. |
SetScramble(Boolean)
Sets whether to use XOR-based traffic scrambling or not.
Declaration
public OpenVpnConnectionConfigurationBuilder SetScramble(bool scramble)
Parameters
Type | Name | Description |
---|---|---|
System. |
scramble | if set to |
Returns
Type | Description |
---|---|
Open |
OpenVpnConnectionConfigurationBuilder. |