Commit Graph
15 Commits
Author SHA1 Message Date
Sebastien Pouliot 402e8ca874 2005-06-23 Sebastien Pouliot <[email protected]>
* ApplicationDirectory.cs, CodeConnectAccess.cs, Hash.cs, 
	NetCodeGroup.cs, PermissionRequestEvidence.cs, PolicyLevel.cs,
	Publisher.cs. Site.cs, StrongName.cs, TrustManagerContext.cs. Url.cs:
	better comments on remaining TODO (all 2.0 related) to ease grepping.
	Reduced the number of casts in some Equals methods.


svn path=/trunk/mcs/; revision=46438
2005-06-23 17:12:20 +00:00
Sebastien Pouliot 67cac60830 2005-05-16 Sebastien Pouliot <[email protected]>
* FileCodeGroup.cs: Deal with null PolicyStatement.
	* NetCodeGroup.cs: Deal with null PolicyStatement.


svn path=/trunk/mcs/; revision=44588
2005-05-16 20:14:55 +00:00
Sebastien Pouliot b62761f304 2005-05-16 Sebastien Pouliot <[email protected]>
* FileCodeGroup.cs: Now use PermissionSet.Union when resolving.
	* NetCodeGroup.cs: Now use PermissionSet.Union when resolving.
	* PolicyStatement.cs: Fix some minor behaviours wrt to new unit tests.
	* UnionCodeGroup.cs: Now use PermissionSet.Union when resolving.


svn path=/trunk/mcs/; revision=44584
2005-05-16 19:42:16 +00:00
Sebastien Pouliot 06f245b898 2005-04-25 Sebastien Pouliot <[email protected]>
* AllMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* ApplicationDirectory.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2. Removed FIXME - confirmed as "by design" by MS.
	* ApplicationDirectoryMembershipCondition.cs: Added [ComVisible (true)]
	in NET_2_0 to match beta2.
	* ApplicationSecurityInfo.cs: Updated to match beta2.
	* ApplicationSecurityManager.cs: Updated to match beta2.
	* ApplicationTrust.cs: Updated to match beta2.
	* ApplicationTrustCollection.cs: Updated to match beta2.
	* ApplicationTrustEnumerator.cs: Added [ComVisible (true)] to match 
	beta2.
	* ApplicationVersionMatch.cs: Added [ComVisible (true)] to match beta2.
	* CodeConnectAccess.cs: Added [ComVisible (true)] to match beta2.
	* CodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. 
	Reworked Equals to avoid multiple typecast.
	* Evidence.cs: Updated to match beta2. Now use internal method 
	Assembly.UnprotectedGetName during security manager initialization.
	* FileCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2. Removed Scope property (didn't survive beta2).
	* FirstMatchCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to 
	match beta2.
	* Gac.cs: Renamed class to GacInstalled. Added [ComVisible (true)] to
	match beta2.
	* GacMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to 
	match beta2.
	* Hash.cs: Added [ComVisible (true)] in NET_2_0 to match beta2.
	* HashMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2. Reworked Equals to avoid multiple typecast.
	* IApplicationTrustManager.cs: Added [ComVisible (true)] to match 
	beta2.
	* IIdentityPermissionFactory.cs: Added [ComVisible (true)] in NET_2_0
	to match beta2.
	* IMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* NetCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2. Removed Scope property (didn't survive beta2).
	* PermissionRequestEvidence.cs: Added [ComVisible (true)] in NET_2_0 
	to match beta2.
	* PolicyException.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2.
	* PolicyLevel.cs: Added [ComVisible (true)] in NET_2_0 to match beta2.
	* PolicyStatementAttribute.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* PolicyStatement.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2.
	* ProvideAssemblyEvidenceEventArgs.cs: Added [ComVisible (true)] to 
	match beta2.
	* Publisher.cs: Added [ComVisible (true)] in NET_2_0 to	match beta2. 
	Reworked Equals to avoid multiple typecast.
	* PublisherMembershipCondition.cs: Added [ComVisible (true)] in 
	NET_2_0 to match beta2. Reworked Equals to avoid multiple typecast.
	* Site.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. Fixed
	allowed characters accepted in site names (different in 2.0 from 1.x).
	* SiteMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* StrongName.cs: Added [ComVisible (true)] in NET_2_0 to match beta2.
	* StrongNameMembershipCondition.cs: Added [ComVisible (true)] in 
	NET_2_0 to match beta2.
	* TrustManagerContext.cs: Updated to match beta2.
	* TrustManagerUIContext.cs: Added [ComVisible (true)] to match beta2.
	* UnionCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match
	beta2.
	* Url.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. Fixed
	the difference in Url matching between 1.x and 2.0. Reworked Equals to
	avoid multiple typecast.
	* UrlMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to 
	match beta2. Fixed the difference in Url matching between 1.x and 2.0.
	* Zone.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. 
	Reworked Equals to avoid multiple typecast.
	* ZoneMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.


svn path=/trunk/mcs/; revision=43550
2005-04-25 16:25:03 +00:00
Sebastien Pouliot b6e20f831e * Evidence.cs:
* FileCodeGroup.cs:
	* NetCodeGroup.cs:
	* PolicyLevel.cs:
	* PolicyStatement.cs:
		Added ComVisible attributes to match 2.0 October Preview.

2004-11-26  Sebastien Pouliot  <[email protected]>


svn path=/trunk/mcs/; revision=36640
2004-11-26 15:19:53 +00:00
Sebastien Pouliot 0e2007a6b5 2004-09-19 Alexis Christoforides <[email protected]>
* CodeGroup.cs: Changed AddChild() to add a copy of the child, like
	the MS implementation.
	* UnionCodeGroup.cs: Resolve() will now perform union on child code
	groups.
	* FileCodeGroup.cs: Resolve() will now perform union on child code
	groups.
	* NetCodeGroup.cs: Resolve() will now perform union on child code
	groups.

svn path=/trunk/mcs/; revision=34075
2004-09-20 00:00:14 +00:00
Sebastien Pouliot 86392669d2 2004-08-26 Sebastien Pouliot <[email protected]>
* ApplicationDirectory.cs: Fixed directory validation and ToString.
	* CodeGroup.cs: Fixed PermissionSetName when policy is null.
	* Evidence.cs: Fixed Merge for null case. Fixed IsSynchronized for
	NET_2_0. Uncommented some code for NET_2_0 DomainManager usage.
	* FileCodeGroup.cs: Fixed Resolve and ResolveMatchingGroup wrt new
	unit tests.
	* Gac.cs: Implemented IBuiltInEvidence methods.
	* Hash.cs: Removed TODO from NET_2_0 as it's hashing seems compatible
	with Mono ;-). Fixed properties for use with NET_2_0.
	* HashMembershipCondition.cs: Fixed To|FromXml serialization. Make
	copies of hash value (not references).
	* PermissionRequestEvidence.cs: Now make copies of permission sets.
	* Publisher.cs: Namespace cleanup, implemented GetRequiredSize.
	* Site.cs: Namespace cleanup, implemented GetRequiredSize.
	* StrongName.cs: Namespace cleanup.
	* UnionCodeGroup.cs: Namespace cleanup, converted spaces to tabs.
	* Url.cs: Namespace cleanup, implemented GetRequiredSize.
	* Zone.cs: Namespace cleanup, globalization and added more details in
	exception.

svn path=/trunk/mcs/; revision=32888
2004-08-26 15:03:04 +00:00
Sebastien Pouliot c8bbc414b8 2004-08-08 Sebastien Pouliot <[email protected]>
* Evidence.cs: Added new static internal method to create default
	host evidences for an assembly.
	* FileCodeGroup.cs: Added incomplete (no children) policy resolution
	in order to load more complex policies.
	* Hash.cs: Added ISerialization support (required for cross-domain
	evidence support, like nunit).
	* NetCodeGroup.cs: Added incomplete (no children) policy resolution in
	order to load more complex policies.

svn path=/trunk/mcs/; revision=32040
2004-08-08 14:41:52 +00:00
Sebastien Pouliot 28e3852214 2004-08-03 Sebastien Pouliot <[email protected]>
* CodeGroup.cs: Added PolicyLevel parameter to internal
	constructor. Added support for attribute PermissionSetName in
	FromXml.
	* FileCodeGroup.cs: Added PolicyLevel parameter to internal
	constructor.
	* FirstMatchCodeGroup.cs: Added PolicyLevel parameter to internal
	constructor.
	* NetCodeGroup.cs: Added PolicyLevel parameter to internal
	constructor.
	* PolicyLevel.cs: Throw a PolicyException when asked to save a
	AppDomain policy. Use new CodeGroup constructor with "this".
	* UnionCodeGroup.cs: Added PolicyLevel parameter to internal
	constructor. Added Copy(bool) to copy, or not, the childs.

svn path=/trunk/mcs/; revision=31812
2004-08-03 15:59:42 +00:00
Sebastien Pouliot 7eea926385 2004-07-14 Sebastien Pouliot <[email protected]>
* NetCodeGroup.cs: Added Equals/GetHashCode methods to NET_2_0 profile.
	* PolicyLevel.cs: Added internal constructor to load a policy file
	from SecurityManager.

svn path=/trunk/mcs/; revision=31130
2004-07-14 12:11:57 +00:00
Sebastien Pouliot 8e48cbb8ff 2004-07-13 Sebastien Pouliot <[email protected]>
* Evidence.cs: Implemented Equals/GetHashCode and added Clear and
	RemoveType methods for NET_2_0 profile.
	* FileCodeGroup.cs: Added Scope property for NET_2_0 profile.
	* Hash.cs: Added static CreateMD5 and CreateSHA1 for NET_2_0 profile.
	* HashMembershipCondition.cs: Implements IDeserializationCallback and
	ISerializable for NET_2_0 profile.
	* NetCodeGroup.cs: Add methods related to CodeConnectAccess for
	NET_2_0 profile.
	* PolicyException.cs: Implements _Exception for NET_2_0 profile.
	* PolicyLevel.cs: Added Type property for NET_2_0 profile.
	* PolicyStatement.cs: Implemented Equals/GetHashCode for NET_2_0
	profile.

svn path=/trunk/mcs/; revision=31096
2004-07-13 16:46:35 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Sebastien Pouliot fa1e8bf5fc 2004-01-05 Sebastien Pouliot <[email protected]>
* CodeGroup.cs: Added internal constructor for PolicyLevel. Complete
	FromXml. Various small fixes to match the unit tests.
	* FileCodeGroup.cs: Added internal constructor for PolicyLevel.
	Implemented GetHashCode (may not be exactly the same as MS).
	* FirstMatchCodeGroup.cs: Added internal constructor for PolicyLevel.
	Copy method now returns a deep copy (as documented).
	* NetCodeGroup.cs: Added internal constructor for PolicyLevel. Fixed
	"Same site Web" (as documented) to "Same site Web." (as real life).
	Copy method now returns a deep copy (as documented).
	* PolicyLevel.cs: Added missing ChangeNamedPermissionSet. Implemented
	FromXml method. Added internal methods to load from file or string.
	Added/changed lots of things to match unit tests.
	* StrongNameMembershipCondition.cs: Added internal constructor for
	PolicyLevel. Fixed Equals.
	* UnionCodeGroup.cs: Added internal constructor for PolicyLevel.
	Copy method now returns a deep copy (as documented).

svn path=/trunk/mcs/; revision=21733
2004-01-06 03:23:58 +00:00
Sebastien Pouliot d6c1ef11d6 2003-06-29 Sebastien Pouliot <[email protected]>
* ApplicationDirectory.cs: Added [Serializable] attribute to class.
	* Evidence.cs: Added [Serializable] attribute to class.
	* FirstMatchCodeGroup.cs: Added [Serializable] attribute to class.
	* HashMembershipCondition.cs: Added [Serializable] attribute to class.
	* NetCodeGroup.cs: Added [Serializable] attribute to class.
	* PublisherMembershipCondition.cs: Added [Serializable] attribute to class.
	* Zone.cs: Added [Serializable] attribute to class.

svn path=/trunk/mcs/; revision=15733
2003-06-30 02:00:35 +00:00
Jackson Harper e64e500050 Added file
svn path=/trunk/mcs/; revision=9221
2002-11-28 08:13:24 +00:00