Gets an instance of SSPI-based GSSAPI-compatible authentication provider. Only works on Windows.

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Public Shared Function GetSspiProvider ( _
	mechanism As String, _
	targetName As String, _
	userName As String, _
	password As String, _
	domain As String _
) As GssApiProvider
C#
public static GssApiProvider GetSspiProvider(
	string mechanism,
	string targetName,
	string userName,
	string password,
	string domain
)

Parameters

mechanism
Type: System..::..String
Requested SSPI mechanism ('NTLM', 'Kerberos' or 'Negotiate').
targetName
Type: System..::..String
The target name. If it is set to null ('Nothing' in VB.NET), server hostname will be used instead.
userName
Type: System..::..String
The user name. If it is set to null ('Nothing' in VB.NET), integrated authentication (single sign-on) will be used.
password
Type: System..::..String
User's password. Can be set to null ('Nothing' in VB.NET) if integrated authentication (single sign-on) is to be used.
domain
Type: System..::..String
User's domain. If it is set to null ('Nothing' in VB.NET), it will be determined from the user name. If not available, the default domain will be used.

Return Value

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also