共用方式為


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)

參數

networkCredential
NetworkCredential

NetworkCredential

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

networkCredential
NetworkCredential

NetworkCredential

適用於