GitHub    Download    Forum
Overview
Tutorial
C++ API
C# API
WinRT API
General interfaces
Connection
Create
Destroy
Connect
Disconnect
QueryConfiguration
QueryControl
QueryDomain
QuerySchemaEdit
stcConnectionOptions
ISystemCallback
ObjectId
Thread
Data interfaces
Schema interfaces
Configuration interfaces
Callback interfaces
Structures
Error codes
DataAccess interfaces
DTDL
DADL
Setup

stcConnectionOptions class

Contains the options for the Connection::Connect function.

Syntax

class stcConnectionOptions
{
UInt32 ulKeyExchangeOptions;
UInt32 ulAuthenticationOptions;
UInt32 ulLoginOptions;
 
UInt32 ulKeySize;
UInt32 ulKeyMode;
 
SecHandle pCredentialsNegotiate;
SecHandle pCredentialsKerberos;
SecHandle pCredentialsNtlm;
 
SEC_WINNT_AUTH_IDENTITY pAuthIdentNegotiate;
SEC_WINNT_AUTH_IDENTITY pAuthIdentKerberos;
SEC_WINNT_AUTH_IDENTITY pAuthIdentNtlm;
SEC_WINNT_AUTH_IDENTITY pAuthIdentPlain;
 
String strServerAccountName;
};

Member

ulKeyExchangeOptions
Type: UInt32
Set of flags that specify which key exchange algorithm and options to use. Use the flags defined in KeyExchangeOption.
Value Description
ECDH The Elliptic Curve Diffie-Hellman algorithm.
DH The Diffie-Hellman algorithm.
RSA The RSA algorithm.
SSPI_NEGOTIATE Microsoft Negotiate
SSPI_KERBEROS Microsoft Kerberos
SSPI_NTLM Microsoft NTLM
ulAuthenticationOptions
Type: UInt32
Set of flags that specify which authentication algorithm and options to use. Use the flags defined in AuthenticationOption.
Value Description
ECDSA The Elliptic Curve DSA algorithm.
RSA The RSA algorithm.
ulLoginOptions
Type: UInt32
Set of flags that specify which login algorithm and options to use. Use the flags defined in LoginOption.
Value Description
SSPI_NEGOTIATE Microsoft Negotiate
SSPI_KERBEROS Microsoft Kerberos
SSPI_NTLM Microsoft NTLM
PLAIN Plain text
ulKeySize
Type: UInt32
Length of the key (in bits) used in the AES encryption algorithm. Valid values are 128, 192, 256.
ulKeyMode
Type: UInt32
Flag that specifies which chaining mode to use for the encryption. Use the flags defined in KeyModeOption.
Value Description
CBC Cipher block chaining mode (CBC).
CCM Counter with CBC-MAC mode (CCM).
GCM Galois counter mode (GCM).
pCredentialsNegotiate
Type: SecHandle
Credentials, used with the Negotiate algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pCredentialsKerberos
Type: SecHandle
Credentials, used with the Kerberos algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pCredentialsNtlm
Type: SecHandle
Credentials, used with the NTLM algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pAuthIdentNegotiate
Type: SEC_WINNT_AUTH_IDENTITY
Data for creating credentials, used with the Negotiate algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pAuthIdentKerberos
Type: SEC_WINNT_AUTH_IDENTITY
Data for creating credentials, used with the Kerberos algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pAuthIdentNtlm
Type: SEC_WINNT_AUTH_IDENTITY
Data for creating credentials, used with the NTLM algorithm. Set to null if you want to use the credentials of the user who is currently logged in.
pAuthIdentPlain
Type: SEC_WINNT_AUTH_IDENTITY
Data for creating credentials, used with the plain text login. Set to null if you want to use the credentials of the user who is currently logged in.
strServerAccountName
Type: String
SPN to be used with the algorithms. Mainly used for Kerberos.
© 2025 Mobiland AG