SspiSecurityToken 构造函数
定义
初始化 SspiSecurityToken 类的新实例。Initializes a new instance of the SspiSecurityToken class.
重载
| SspiSecurityToken(NetworkCredential, Boolean, Boolean) |
初始化 SspiSecurityToken 类的新实例。Initializes a new instance of the SspiSecurityToken class. |
| SspiSecurityToken(TokenImpersonationLevel, Boolean, NetworkCredential) |
初始化 SspiSecurityToken 类的新实例。Initializes a new instance of the SspiSecurityToken class. |
SspiSecurityToken(NetworkCredential, Boolean, Boolean)
初始化 SspiSecurityToken 类的新实例。Initializes a new instance of the SspiSecurityToken class.
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。true if the groups to which the Windows accounts belong are extracted; otherwise, false.
- allowUnauthenticatedCallers
- Boolean
如果允许未经身份验证的(匿名)调用方,则为 true;否则为 false。true if unauthenticated (anonymous) callers are allowed; otherwise, false.
适用于
SspiSecurityToken(TokenImpersonationLevel, Boolean, NetworkCredential)
初始化 SspiSecurityToken 类的新实例。Initializes a new instance of the SspiSecurityToken class.
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。true if NTLM authentication is allowed; otherwise, false.
- networkCredential
- NetworkCredential