SspiSecurityTokenProvider 构造函数

定义

初始化 SspiSecurityTokenProvider 类的新实例。Initializes a new instance of the SspiSecurityTokenProvider class.

重载

SspiSecurityTokenProvider(NetworkCredential, Boolean, Boolean)

初始化 SspiSecurityTokenProvider 类的新实例。Initializes a new instance of the SspiSecurityTokenProvider class.

SspiSecurityTokenProvider(NetworkCredential, Boolean, TokenImpersonationLevel)

初始化 SspiSecurityTokenProvider 类的新实例。Initializes a new instance of the SspiSecurityTokenProvider class.

SspiSecurityTokenProvider(NetworkCredential, Boolean, Boolean)

初始化 SspiSecurityTokenProvider 类的新实例。Initializes a new instance of the SspiSecurityTokenProvider class.

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

表示服务器标识的 NetworkCredentialThe NetworkCredential that represents the server identity.

extractGroupsForWindowsAccounts
Boolean

如果扩展用户以包含 Windows 组,则为 true,否则为 falsetrue to expand users to include Windows Groups; otherwise, false.

allowUnauthenticatedCallers
Boolean

允许未经过身份验证的调用方,则为 true,否则为 falsetrue to allow unauthenticated callers; otherwise, false.

注解

此类的实例用于服务上的 SSPI 令牌。The instance of this class is used for SSPI tokens on the service.

适用于

SspiSecurityTokenProvider(NetworkCredential, Boolean, TokenImpersonationLevel)

初始化 SspiSecurityTokenProvider 类的新实例。Initializes a new instance of the SspiSecurityTokenProvider class.

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

表示客户端标识的 NetworkCredentialThe NetworkCredential that represents the client identity.

allowNtlm
Boolean

允许 NTLM 验证,则为 true;否则为 falsetrue to allow NTLM authentication; otherwise, false.

impersonationLevel
TokenImpersonationLevel

授予服务器的 TokenImpersonationLevelThe TokenImpersonationLevel granted to the server.

注解

此类的新实例用于客户端上的 SSPI 令牌。The new instance of this class is used for SSPI tokens on the client.

适用于