dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Principal Win


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Principal WindowsIdentity.cs,1.1,1.2 WindowsPrincipal.cs,1.1,1.2
Date: Thu, 24 Apr 2003 23:53:10 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Principal
In directory subversions:/tmp/cvs-serv5946/runtime/System/Security/Principal

Modified Files:
        WindowsIdentity.cs WindowsPrincipal.cs 
Log Message:


Signature-compatibility fixes to a large number of classes.


Index: WindowsIdentity.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Principal/WindowsIdentity.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** WindowsIdentity.cs  22 Apr 2003 01:30:45 -0000      1.1
--- WindowsIdentity.cs  25 Apr 2003 03:53:07 -0000      1.2
***************
*** 31,35 ****
  
  [Serializable]
! public class WindowsIdentity : IIdentity, IDeserializationCallback
  {
        // Internal state.
--- 31,36 ----
  
  [Serializable]
! public class WindowsIdentity
!       : IIdentity, ISerializable, IDeserializationCallback
  {
        // Internal state.
***************
*** 76,79 ****
--- 77,111 ----
                                this.isAuthenticated = isAuthenticated;
                        }
+       public WindowsIdentity(String sUserPrincipalName)
+                       {
+                               this.userToken = IntPtr.Zero;
+                               this.name = sUserPrincipalName;
+                               this.type = "NTLM";
+                               this.acctType = WindowsAccountType.Normal;
+                               this.isAuthenticated = false;
+                       }
+       public WindowsIdentity(String sUserPrincipalName, String type)
+                       {
+                               this.userToken = IntPtr.Zero;
+                               this.name = sUserPrincipalName;
+                               this.type = type;
+                               this.acctType = WindowsAccountType.Normal;
+                               this.isAuthenticated = false;
+                       }
+       [TODO]
+       public WindowsIdentity(SerializationInfo info, StreamingContext context)
+                       {
+                               if(info == null)
+                               {
+                                       throw new ArgumentNullException("info");
+                               }
+                               // TODO
+                       }
+ 
+       // Destructor.
+       ~WindowsIdentity()
+                       {
+                               // Nothing to do here in this implementation.
+                       }
  
        // Get the type of authentication used.
***************
*** 138,141 ****
--- 170,181 ----
                                        return userToken;
                                }
+                       }
+ 
+       // Implement the ISerializable interface.
+       [TODO]
+       void ISerializable.GetObjectData(SerializationInfo info,
+                                                                        
StreamingContext context)
+                       {
+                               // TODO
                        }
  

Index: WindowsPrincipal.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Principal/WindowsPrincipal.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** WindowsPrincipal.cs 22 Apr 2003 01:30:45 -0000      1.1
--- WindowsPrincipal.cs 25 Apr 2003 03:53:07 -0000      1.2
***************
*** 32,36 ****
  
        // Constructor.
!       public WindowsPrincipal(IIdentity ntIdentity)
                        {
                                if(ntIdentity == null)
--- 32,36 ----
  
        // Constructor.
!       public WindowsPrincipal(WindowsIdentity ntIdentity)
                        {
                                if(ntIdentity == null)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]