Skip to Content
The .NET Developer's Guide to Windows Security
book

The .NET Developer's Guide to Windows Security

by Keith Brown
September 2004
Intermediate to advanced
408 pages
7h 25m
English
Addison-Wesley Professional
Content preview from The .NET Developer's Guide to Windows Security

Chapter 24. What Are WindowsIdentity and WindowsPrincipal?

These classes work together to represent a Windows token (Item 16) and provide implementations of the abstract interfaces IIdentity and IPrincipal, which I discussed in Item 15. Here are the public members of these classes.

 namespace System.Security.Principal { public class WindowsIdentity : IIdentity { // I've omitted some redundant constructor overloads public WindowsIdentity(IntPtr token, string authnType, WindowsAccountType accountType, bool isAuthenticated); public WindowsIdentity(string userPrincipalName, string authnType); public bool IsAnonymous { get; } public bool IsSystem { get; } public bool IsGuest { get; } public virtual IntPtr Token { get; } public virtual WindowsImpersonationContext ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

.NET Framework Security

.NET Framework Security

Brian A. LaMacchia, Sebastian Lange, Matthew Lyons, Rudi Martin, Kevin T. Price
Programming .NET Security

Programming .NET Security

Adam Freeman, Allen Jones

Publisher Resources

ISBN: 0321228359Purchase book