Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@ -70,9 +70,7 @@ namespace System.Security {
// properties
#if NET_4_0
[Obsolete]
#endif
extern public static bool CheckExecutionRights {
[MethodImplAttribute (MethodImplOptions.InternalCall)]
get;
@ -117,9 +115,7 @@ namespace System.Security {
origin = new ArrayList ();
}
#if NET_4_0
[Obsolete]
#endif
public static bool IsGranted (IPermission perm)
{
if (perm == null)
@ -220,9 +216,7 @@ namespace System.Security {
return null;
}
#if NET_4_0
[Obsolete]
#endif
[SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
public static PolicyLevel LoadPolicyLevelFromFile (string path, PolicyLevelType type)
{
@ -240,9 +234,7 @@ namespace System.Security {
return pl;
}
#if NET_4_0
[Obsolete]
#endif
[SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
public static PolicyLevel LoadPolicyLevelFromString (string str, PolicyLevelType type)
{
@ -260,18 +252,14 @@ namespace System.Security {
return pl;
}
#if NET_4_0
[Obsolete]
#endif
[SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
public static IEnumerator PolicyHierarchy ()
{
return Hierarchy;
}
#if NET_4_0
[Obsolete]
#endif
public static PermissionSet ResolvePolicy (Evidence evidence)
{
// no evidence, no permission
@ -293,9 +281,7 @@ namespace System.Security {
return ps;
}
#if NET_4_0
[Obsolete]
#endif
[MonoTODO ("(2.0) more tests are needed")]
public static PermissionSet ResolvePolicy (Evidence[] evidences)
{
@ -312,9 +298,7 @@ namespace System.Security {
return ps;
}
#if NET_4_0
[Obsolete]
#endif
public static PermissionSet ResolveSystemPolicy (Evidence evidence)
{
// no evidence, no permission
@ -338,9 +322,7 @@ namespace System.Security {
static private SecurityPermission _execution = new SecurityPermission (SecurityPermissionFlag.Execution);
#if NET_4_0
[Obsolete]
#endif
public static PermissionSet ResolvePolicy (Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, out PermissionSet denied)
{
PermissionSet resolved = ResolvePolicy (evidence);
@ -375,9 +357,7 @@ namespace System.Security {
return resolved;
}
#if NET_4_0
[Obsolete]
#endif
public static IEnumerator ResolvePolicyGroups (Evidence evidence)
{
if (evidence == null)
@ -394,9 +374,7 @@ namespace System.Security {
return al.GetEnumerator ();
}
#if NET_4_0
[Obsolete]
#endif
[SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
public static void SavePolicy ()
{
@ -407,9 +385,7 @@ namespace System.Security {
}
}
#if NET_4_0
[Obsolete]
#endif
[SecurityPermission (SecurityAction.Demand, ControlPolicy = true)]
public static void SavePolicyLevel (PolicyLevel level)
{
@ -787,7 +763,6 @@ namespace System.Security {
}
#pragma warning restore 169
#if NET_4_0
public static PermissionSet GetStandardSandbox (Evidence evidence)
{
if (evidence == null)
@ -800,7 +775,6 @@ namespace System.Security {
{
throw new NotImplementedException ();
}
#endif
}
}