SspiSecurityToken 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
- 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)
参数
- impersonationLevel
- TokenImpersonationLevel
- allowNtlm
- Boolean
如果允许 NTLM 身份验证,则为 true
;否则为 false
。
- networkCredential
- NetworkCredential