Skip to Content
Programming .NET Security
book

Programming .NET Security

by Adam Freeman, Allen Jones
June 2003
Intermediate to advanced
714 pages
22h 8m
English
O'Reilly Media, Inc.
Content preview from Programming .NET Security

Name

WindowsIdentity

Synopsis

public class WindowsIdentity : IIdentity, System.Runtime.Serialization.ISerializable, 
        System.Runtime.Serialization.IDeserializationCallback {
// Public Constructors
   public WindowsIdentity(IntPtr userToken);
   public WindowsIdentity(IntPtr userToken, string type);
   public WindowsIdentity(IntPtr userToken, string type, WindowsAccountType acctType);
   public WindowsIdentity(IntPtr userToken, string type, WindowsAccountType acctType, bool isAuthenticated);
   public WindowsIdentity(System.Runtime.Serialization.SerializationInfo info, 
      System.Runtime.Serialization.StreamingContext context);
   public WindowsIdentity(string sUserPrincipalName);
   public WindowsIdentity(string sUserPrincipalName, string type);
// Public Instance Properties
   public virtual string AuthenticationType{get; }
// implements IIdentity
   public virtual bool IsAnonymous{get; }
   public virtual bool IsAuthenticated{get; } 
// implements IIdentity
   public virtual bool IsGuest{get; }
   public virtual bool IsSystem{get; }
   public virtual string Name{get; } 
// implements IIdentity
   public virtual IntPtr Token{get; }
// Public Static Methods
   public static WindowsIdentity GetAnonymous(  );
   public static WindowsIdentity GetCurrent(  );
   public static WindowsImpersonationContext Impersonate(IntPtr userToken);
// Public Instance Methods
   public virtual WindowsImpersonationContext Impersonate(  );
// Protected Instance Methods
   protected override void Finalize(  );        
// overrides object
}

The WindowsIdentity class provides an

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
.NET Security and Cryptography

.NET Security and Cryptography

Peter Thorsteinson, G. Gnana Arun Ganesh
ASP.NET Core Security

ASP.NET Core Security

Christian Wenz

Publisher Resources

ISBN: 0596004427Supplemental ContentErrata Page