SPSecurityContext methods

The SPSecurityContext type exposes the following members.

Methods

  Name Description
Public methodStatic member GetWindowsIdentity Returns the Windows identity of the current user.
Public methodStatic member SecurityTokenForContext Returns credentials that the current user can use to access a resource at a specified location.
Public methodStatic member SecurityTokenForFormsAuthentication(Uri, String, String, String, String) Obsolete. Obtains a security token for a user authenticating through forms-based authentication.
Public methodStatic member SecurityTokenForFormsAuthentication(Uri, String, String, String, String, SPFormsAuthenticationOption)

Top

See also

Reference

SPSecurityContext class

Microsoft.SharePoint namespace