SspiSecurityTokenProvider 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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
true 以擴展使用者以包含 Windows 群組;否則則為 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
true允許NTLM認證;否則,。 false
- impersonationLevel
- TokenImpersonationLevel
TokenImpersonationLevel這讓伺服器獲得了。
備註
此類別的新實例用於用戶端的 SSPI 標記。