System.Security.Principal Namespace

The System.Security.Principal namespace defines a principal object that represents the security context under which code is running. For more information, see Role-Based Security.

Classes

TypeReason
GenericIdentity

Represents a generic user.

GenericPrincipal

Represents a generic principal.

IdentityNotMappedException

Represents an exception for a principal whose identity could not be mapped to a known identity.

IdentityReference

Represents an identity and is the base class for the System.Security.Principal.NTAccount and System.Security.Principal.SecurityIdentifier classes. This class does not provide a public constructor, and therefore cannot be inherited.

IdentityReferenceCollection

Represents a collection of System.Security.Principal.IdentityReference objects and provides a means of converting sets of System.Security.Principal.IdentityReference-derived objects to System.Security.Principal.IdentityReference-derived types.

IIdentity

Defines the basic functionality of an identity object.

IPrincipal

Defines the basic functionality of a principal object.

NTAccount

Represents a user or group account.

PrincipalPolicy

Specifies how principal and identity objects should be created for an application domain. The default is UnauthenticatedPrincipal.

SecurityIdentifier

Represents a security identifier (SID) and provides marshaling and comparison operations for SIDs.

TokenAccessLevels

Defines the privileges of the user account associated with the access token.

TokenImpersonationLevel

Defines security impersonation levels. Security impersonation levels govern the degree to which a server process can act on behalf of a client process.

WellKnownSidType

Defines a set of commonly used security identifiers (SIDs).

WindowsAccountType

Specifies the type of Windows account used.

WindowsBuiltInRole

Specifies common roles to be used with System.Security.Principal.WindowsPrincipal.IsInRole(string).

WindowsIdentity

Represents a Windows user.

WindowsImpersonationContext

Represents the Windows user prior to an impersonation operation.

WindowsPrincipal

Enables code to check the Windows group membership of a Windows user.