Identity and Principal

Two key objects closely associated with security in .NET are identities and principal objects. An identity represents a user's identity and the method used to authenticate the user. Two identity classes are provided by default in .NET. The GenericIdentity is a generic implementation of the IIdentity interface that is not specific to any particular type of authentication. It implements the required interface and no more. The WindowsIdentity is an implementation of IIdentity that adds more methods and properties particular to Windows-based authentication.

Get C#® Developer's Guide to ASP.NET, XML, and ADO.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.