Commit Graph
24 Commits
Author SHA1 Message Date
Atsushi Eno daa70f997b 2007-11-07 Atsushi Enomoto <[email protected]>
* SecurityElement.cs :
	  set_Text() should unescape the input string. get_Text() should
	  return unescaped string. It also applies to attribute value.
	  ToString() should return valid (escaped) XML.

	* SecurityElementTest.cs : enabled test for #333699 and added
	  couple more.


svn path=/trunk/mcs/; revision=89135
2007-11-07 18:07:29 +00:00
Gert Driesen 98c4e1fa83 * SecurityElement.cs: In ctors, do not assign to Tag property to
ensure exception message match that of MS. In Tag property, set name 
of parameter in ArgumentNullException and do not filter out
namespace prefixes. Modified Text property to allow null values
after change to IsValidText that no longer considers null value as
valid. Avoid NRE in Escape.
* SecurityElementTest.cs: No longer derive from Assertion. Added and
improved ctor tests. Improved AddAttribute and AddChild tests.
Added comment to mono's Attributes test and added test that passes
on MS (to track fix for MS bug). Improved IsValid* tests. Added tests
for Tag and Text. Improved FromString test to verify behavior wrt
namespace prefixes. Added test for bug #333699.

svn path=/trunk/mcs/; revision=87459
2007-10-14 13:44:48 +00:00
Sebastien Pouliot fede5cfc65 2005-06-08 Sebastien Pouliot <[email protected]>
* AllowPartiallyTrustedCallersAttribute.cs, HostSecurityManagerFlags.cs
	IEvidenceFactory.cs, IPermission.cs, ISecurityEncodable.cs,
	ISecurityPolicyEncodable.cs, IStackWalk.cs, NamedPermissionSet.cs,
	PolicyLevelType.cs, SecureString.cs, SecurityElement.cs, 
	SecurityZone.cs, UnverifiableCodeAttribute.cs, VerificationException.cs
	XmlSyntaxException.cs: Fix 2.0 beta2 API changes (which is mostly 
	adding ComVisible attributes to classes).


svn path=/trunk/mcs/; revision=45630
2005-06-08 11:29:29 +00:00
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Sebastien Pouliot 510706a095 2005-01-10 Sebastien Pouliot <[email protected]>
* HostSecurityManager.cs: Fix signature as DetermineApplicationTrust
	doesn't return a boolean anymore.
	* SecurityElement.cs: The attributes and children elements are not
	indented in 2.0. This fix many unit tests that do string compares.
	* PermissionSetCollection.cs: We can't trust all IList implementations
	to throw the ArgumentOutOfRangeException - so we better do it here.


svn path=/trunk/mcs/; revision=38662
2005-01-11 01:07:14 +00:00
Sebastien Pouliot 2e00f333b7 2004-11-30 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs:
	* NamedPermissionSet.cs:
	* PermissionSet.cs:
	* SecurityElement.cs:
	* SecurityException.cs:
		Added ComVisible attributes to match 2.0 October Preview.
	* SecureString.cs: Added an internal method to get the unencrypted 
	string (required to use the string inside mscorlib).


svn path=/trunk/mcs/; revision=36870
2004-11-30 23:56:18 +00:00
Sebastien Pouliot 7b3de204f7 2004-09-02 Sebastien Pouliot <[email protected]>
* PermissionSet.cs: Updated to match latest unit tests, i.e. match
	Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
	* SecurityElement.cs: FromString is now internal before NET_2_0.

svn path=/trunk/mcs/; revision=33204
2004-09-02 10:45:05 +00:00
Sebastien Pouliot a8a8fd41cb 2004-08-26 Sebastien Pouliot <[email protected]>
* SecurityElement.cs: Fixed the new Copy() in Fx 2.0 as it isn't a
	deep copy. Throw proper exceptions in FromString (Fx 2.0).
	* SecurityManager.cs: Throw a NullReference exception in
	SavePolicyLevel as MS won't fix it (FDBK13121).

svn path=/trunk/mcs/; revision=32884
2004-08-26 14:40:19 +00:00
Sebastien Pouliot 488ecc889f 2004-07-14 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: Added CheckAssert, CheckDemand, CheckDeny,
	CheckPermitOnly, Equals and GetHashCode to NET_2_0 profile. Actualized
	TODOs. Removed duplicate license.
	* NamedPermissionSet.cs: Added Equals/GetHashCode to NET_2_0 profile.
	Removed duplicate license.
	* PermissionSet.cs: Added Equals/GetHashCode to NET_2_0 profile.
	Removed duplicate license.
	* SecurityElement.cs: Added Copy and FromString methods to NET_2_0
	profile. Removed duplicate license.
	* SecurityException.cs: Added new constructors and properties to
	NET_2_0 profile. Removed duplicate license.
	* SecurityManager.cs: Added GetZoneAndOrigin and ResolvePolicy to
	NET_2_0 profile. Removed duplicate license.
	* VerificationException.cs: Implements _Exception for NET_2_0 profile.
	Removed duplicate license.
	* XmlSyntaxException.cs: Implements _Exception for NET_2_0 profile.
	Removed duplicate license.

svn path=/trunk/mcs/; revision=31128
2004-07-14 12:06:25 +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
Ben Maurer 5f19f39562 ...
svn path=/trunk/mcs/; revision=26350
2004-04-29 22:05:39 +00:00
Atsushi Eno e35ec95c08 2004-03-05 Atsushi Enomoto <[email protected]>
* SecurityElement.cs : ignore prefix; this enables RSA.FromXmlString()
	  to allow namespaced elements.

svn path=/trunk/mcs/; revision=23709
2004-03-04 22:40:52 +00:00
Sebastien Pouliot b698639770 2004-01-27 Sebastien Pouliot <[email protected]>
* SecurityElement.cs: Attributes are now kept in an ArrayList (but
	still returned in an Hashtable) so the attributes order can be
	kept like MS implementation (but Hashtable cannot guarantee this).

svn path=/trunk/mcs/; revision=22561
2004-01-28 04:40:23 +00:00
David Sheldon 50b364fbe2 2004-01-25 David Sheldon <[email protected]>
* Test/System.Security.Policy/PublisherTest.cs, SiteTest.cs:
  Changed "\r\n" in strings to use Environment.NewLine.


  * System.Security/SecurityElement.cs: Changed indentation in ToString, it seems
  MS indent by 3 spaces, not 4. Also added NewLine to childless
	elements.

svn path=/trunk/mcs/; revision=22473
2004-01-25 11:13:07 +00:00
David Sheldon 68bd4245bb 2004-01-24 David Sheldon <[email protected]>
* SecurityElement.cs: Changed newline distribution in ToString.
         Matches MS better.

       * CodeAccessPermissionTest.cs (To_String): Compared
       Environment.NewLine rather than "\r\n"

svn path=/trunk/mcs/; revision=22465
2004-01-24 14:22:21 +00:00
Sebastien Pouliot 860cead170 2004-01-02 Sebastien Pouliot <[email protected]>
* AllowPartiallyTrustedCallersAttribute.cs: Fixed AttributeUsage using
	1.2 documentation (AllowMultiple=false, Inherited=false)
	* NamedPermissionSet.cs: Changes to match unit tests.
	* PermissionSet.cs: Implemented Copy, Intersect, IsSubsetOf and Union
	methods. Corrected FromXml.
	* PolicyLevelType.cs: Added missing [Serializable].
	* SecurityElement.cs: Fixed constructor to match unit tests.
	* SecurityException.cs: Added support for GrantedSet and RefusedSet
	properties (since 1.1). Set HResult to 0x8013150A.
	* SecurityZone.cs: Added missing [Serializable].
	* SuppressUnmanagedCodeSecurityAttribute.cs: Fixed AttributeUsage using
	1.2 documentation (AllowMultiple=true, Inherited=false)
	* UnverifiableCodeAttribute.cs: Fixed AttributeUsage using 1.2
	documentation (AllowMultiple=true, Inherited=false)

svn path=/trunk/mcs/; revision=21610
2004-01-03 00:56:33 +00:00
Nick Drochak 76b6102010 2002-06-05 Nick Drochak <[email protected]>
* SecurityElement.cs: Fixed couple of hard to spot typos which were
	causing valid names and keys to be rejected.

svn path=/trunk/mcs/; revision=5111
2002-06-04 11:32:53 +00:00
Lawrence Pit eed54e475f Socket permission stuff, not yet used by Socket itself.
svn path=/trunk/mcs/; revision=4101
2002-04-28 09:12:58 +00:00
Lawrence Pit 04dac1507b SecurityElement fixed and several methods implemented, added test unit
svn path=/trunk/mcs/; revision=4085
2002-04-27 10:49:32 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Nick Drochak a68afdcff9 2002-02-23 Nick Drochak <[email protected]>
* SecurityElement.cs: fixed typo.  CorCompare helped me find this one
		:)

svn path=/trunk/mcs/; revision=2586
2002-02-22 12:19:36 +00:00
Miguel de Icaza 7cab9c0106 Flush
svn path=/trunk/mcs/; revision=2043
2002-01-18 02:27:23 +00:00
Ravi Pratap M ae13c94258 2002-01-05 Ravi Pratap <[email protected]>
* SecurityElement.cs : Insert MonoTODO attribute.

svn path=/trunk/mcs/; revision=1847
2002-01-05 06:08:57 +00:00
Miguel de Icaza b5615e0cd8 2001-12-21 Miguel de Icaza <[email protected]>
* SecurityElement.cs, CodeAccessPermission.cs IPermission.cs
	IStackWalk.cs SecurityElement.cs ISecurityEncodable.cs: New files.

svn path=/trunk/mcs/; revision=1682
2001-12-22 04:28:02 +00:00