2 // WindowsPrincipal.cs: Windows IPrincipal implementation
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
12 namespace System.Security.Principal {
15 public class WindowsPrincipal : IPrincipal {
17 private WindowsIdentity _identity;
19 public WindowsPrincipal (WindowsIdentity ntIdentity)
21 if (ntIdentity == null)
22 throw new ArgumentNullException ("ntIdentity");
24 _identity = ntIdentity;
29 public virtual IIdentity Identity {
30 get { return _identity; }
36 public virtual bool IsInRole (int rid)
38 throw new NotImplementedException ();
42 public virtual bool IsInRole (string role)
45 return false; // ArgumentNullException
47 // case sensitive (for 1.0)
49 // case insensitive (for 1.1 and later)
51 throw new NotImplementedException ();
54 public virtual bool IsInRole (WindowsBuiltInRole role)
56 return IsInRole ((int)role);