SspiSecurityToken 构造函数

定义

初始化 SspiSecurityToken 类的新实例。

重载

SspiSecurityToken(NetworkCredential, Boolean, Boolean)

初始化 SspiSecurityToken 类的新实例。

SspiSecurityToken(TokenImpersonationLevel, Boolean, NetworkCredential)

初始化 SspiSecurityToken 类的新实例。

SspiSecurityToken(NetworkCredential, Boolean, Boolean)

初始化 SspiSecurityToken 类的新实例。

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

参数

extractGroupsForWindowsAccounts
Boolean

如果提取 Windows 帐户所属的组,则为 true;否则为 false

allowUnauthenticatedCallers
Boolean

如果允许未经身份验证的(匿名)调用方,则为 true;否则为 false

适用于

SspiSecurityToken(TokenImpersonationLevel, Boolean, NetworkCredential)

初始化 SspiSecurityToken 类的新实例。

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

参数

allowNtlm
Boolean

如果允许 NTLM 身份验证,则为 true;否则为 false

适用于