Share via


SPSecurityContext members

Provides a static utility class that contains properties and methods to work with the security context of the current user.

The SPSecurityContext type exposes the following members.

Properties

  Name Description
Public propertyStatic member IsWindowsIdentityAvailable Gets a value that indicates whether a Windows identity is available for the current user.

Top

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