提供包含属性和方法来处理当前用户的安全性上下文的静态实用工具类。
SPSecurityContext 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
![]() ![]() |
IsWindowsIdentityAvailable | 获取一个值,该值指示是否可用于当前用户的 Windows 标识。 |
页首
方法
| 名称 | 说明 | |
|---|---|---|
![]() ![]() |
GetWindowsIdentity | 返回当前用户的 Windows 标识。 |
![]() ![]() |
SecurityTokenForContext | 返回当前用户可以使用访问指定位置处的资源的凭据。 |
![]() ![]() |
SecurityTokenForFormsAuthentication(Uri, String, String, String, String) | 已过时。获取用于通过基于表单的身份验证进行身份验证的用户安全令牌。 |
![]() ![]() |
SecurityTokenForFormsAuthentication(Uri, String, String, String, String, SPFormsAuthenticationOption) |
页首
.gif)
.gif)
.gif)