[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security SecurityExce
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security SecurityException.cs,1.5,1.6 SecurityManager.cs,1.3,1.4 |
Date: |
Thu, 24 Apr 2003 23:53:09 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security
In directory subversions:/tmp/cvs-serv5946/runtime/System/Security
Modified Files:
SecurityException.cs SecurityManager.cs
Log Message:
Signature-compatibility fixes to a large number of classes.
Index: SecurityException.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/SecurityException.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** SecurityException.cs 7 Apr 2003 04:22:52 -0000 1.5
--- SecurityException.cs 25 Apr 2003 03:53:07 -0000 1.6
***************
*** 32,35 ****
--- 32,37 ----
private String permissionState;
private Type permissionType;
+ private String grantedSet;
+ private String refusedSet;
#endif
***************
*** 48,51 ****
--- 50,64 ----
permissionState =
info.GetString("PermissionState");
}
+ public SecurityException(String message, Type type)
+ : base(message)
+ {
+ this.permissionType = type;
+ }
+ public SecurityException(String message, Type type, String state)
+ : base(message)
+ {
+ this.permissionType = type;
+ this.permissionState = state;
+ }
#endif
***************
*** 88,91 ****
--- 101,122 ----
}
+ // Get the granted permission set.
+ public String GrantedSet
+ {
+ get
+ {
+ return grantedSet;
+ }
+ }
+
+ // Get the refused permission set.
+ public String RefusedSet
+ {
+ get
+ {
+ return refusedSet;
+ }
+ }
+
// Get the serialization data for this object.
public override void GetObjectData(SerializationInfo info,
***************
*** 94,97 ****
--- 125,134 ----
base.GetObjectData(info, context);
info.AddValue("PermissionState",
permissionState);
+ }
+
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return base.ToString();
}
Index: SecurityManager.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/SecurityManager.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** SecurityManager.cs 23 Apr 2003 05:39:50 -0000 1.3
--- SecurityManager.cs 25 Apr 2003 03:53:07 -0000 1.4
***************
*** 30,33 ****
--- 30,35 ----
public sealed class SecurityManager
{
+ // Cannot instantiate this class.
+ private SecurityManager() {}
// Determine if a specific permission has been granted.
***************
*** 61,64 ****
--- 63,74 ----
}
+ // Get an enumerator for the policy hierarchy.
+ [TODO]
+ public static IEnumerator PolicyHierarchy()
+ {
+ // TODO
+ return null;
+ }
+
// Save a particular policy level.
[TODO]
***************
*** 94,105 ****
}
- // Get an enumerator for the policy hierarchy.
- [TODO]
- public static IEnumerator PolicyHeirarchy()
- {
- // TODO
- return null;
- }
-
// Save policy information.
[TODO]
--- 104,107 ----
***************
*** 139,148 ****
}
! // Print information about the granted permissions for the
! // current application domain's assemblies.
[TODO]
! public static void PrintGrantInfo()
{
// TODO
}
--- 141,152 ----
}
! // Get the zone and origin information
[TODO]
! public static void GetZoneAndOrigin(out ArrayList zone,
!
out ArrayList origin)
{
// TODO
+ zone = null;
+ origin = null;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security SecurityException.cs,1.5,1.6 SecurityManager.cs,1.3,1.4,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/InteropServices UCOMIBindCtx.cs,1.2,1.3UCOMIConnectionPoint.cs,1.2,1.3 UCOMIConnectionPointContainer.cs,1.2,1.3 UCOMIEnumConnectionPoints.cs,1.2,1.3 UCOMIEnumConnections.cs,1.2,1.3 UCOMIEnumMoniker.cs,1.2,1.3 UCOMIEnumString.cs,1.2,1.3 UCOMIEnumVARIANT.cs,1.2,1.3 UCOMIMoniker.cs,1.2,1.3 UCOMIPersistFile.cs,1.2,1.3 UCOMIRunningObjectTable.cs,1.2,1.3 UCOMIStream.cs,1.2,1.3 UCOMITypeInfo.cs,1.3,1.4UCOMITypeLib.cs,1.3,1.4
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection Assembly.cs,1.25,1.26 AssemblyName.cs,1.2,1.3 Module.cs,1.9,1.10 TypeDelegator.cs,1.1,1.2
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/InteropServices UCOMIBindCtx.cs,1.2,1.3UCOMIConnectionPoint.cs,1.2,1.3 UCOMIConnectionPointContainer.cs,1.2,1.3 UCOMIEnumConnectionPoints.cs,1.2,1.3 UCOMIEnumConnections.cs,1.2,1.3 UCOMIEnumMoniker.cs,1.2,1.3 UCOMIEnumString.cs,1.2,1.3 UCOMIEnumVARIANT.cs,1.2,1.3 UCOMIMoniker.cs,1.2,1.3 UCOMIPersistFile.cs,1.2,1.3 UCOMIRunningObjectTable.cs,1.2,1.3 UCOMIStream.cs,1.2,1.3 UCOMITypeInfo.cs,1.3,1.4UCOMITypeLib.cs,1.3,1.4
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Reflection Assembly.cs,1.25,1.26 AssemblyName.cs,1.2,1.3 Module.cs,1.9,1.10 TypeDelegator.cs,1.1,1.2
- Index(es):