SspiSecurityTokenProvider 构造函数

定义

初始化 SspiSecurityTokenProvider 类的新实例。

重载

SspiSecurityTokenProvider(NetworkCredential, Boolean, Boolean)

初始化 SspiSecurityTokenProvider 类的新实例。

SspiSecurityTokenProvider(NetworkCredential, Boolean, TokenImpersonationLevel)

初始化 SspiSecurityTokenProvider 类的新实例。

SspiSecurityTokenProvider(NetworkCredential, Boolean, Boolean)

初始化 SspiSecurityTokenProvider 类的新实例。

public:
 SspiSecurityTokenProvider(System::Net::NetworkCredential ^ credential, bool extractGroupsForWindowsAccounts, bool allowUnauthenticatedCallers);
public SspiSecurityTokenProvider (System.Net.NetworkCredential credential, bool extractGroupsForWindowsAccounts, bool allowUnauthenticatedCallers);
new System.ServiceModel.Security.SspiSecurityTokenProvider : System.Net.NetworkCredential * bool * bool -> System.ServiceModel.Security.SspiSecurityTokenProvider
Public Sub New (credential As NetworkCredential, extractGroupsForWindowsAccounts As Boolean, allowUnauthenticatedCallers As Boolean)

参数

credential
NetworkCredential

表示服务器标识的 NetworkCredential

extractGroupsForWindowsAccounts
Boolean

如果扩展用户以包含 Windows 组,则为 true,否则为 false

allowUnauthenticatedCallers
Boolean

允许未经过身份验证的调用方,则为 true,否则为 false

注解

此类的实例用于服务上的 SSPI 令牌。

适用于

SspiSecurityTokenProvider(NetworkCredential, Boolean, TokenImpersonationLevel)

初始化 SspiSecurityTokenProvider 类的新实例。

public:
 SspiSecurityTokenProvider(System::Net::NetworkCredential ^ credential, bool allowNtlm, System::Security::Principal::TokenImpersonationLevel impersonationLevel);
public SspiSecurityTokenProvider (System.Net.NetworkCredential credential, bool allowNtlm, System.Security.Principal.TokenImpersonationLevel impersonationLevel);
new System.ServiceModel.Security.SspiSecurityTokenProvider : System.Net.NetworkCredential * bool * System.Security.Principal.TokenImpersonationLevel -> System.ServiceModel.Security.SspiSecurityTokenProvider
Public Sub New (credential As NetworkCredential, allowNtlm As Boolean, impersonationLevel As TokenImpersonationLevel)

参数

credential
NetworkCredential

表示客户端标识的 NetworkCredential

allowNtlm
Boolean

允许 NTLM 验证,则为 true;否则为 false

impersonationLevel
TokenImpersonationLevel

授予服务器的 TokenImpersonationLevel

注解

此类的新实例用于客户端上的 SSPI 令牌。

适用于