|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections;
using System.Security.Policy;
namespace System.Security
{
#if NET
[Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSecurityDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
#endif
public static partial class SecurityManager
{
[Obsolete]
public static bool CheckExecutionRights { get; set; }
[Obsolete]
public static bool SecurityEnabled { get; set; }
public static bool CurrentThreadRequiresSecurityContextCapture() { return false; }
public static PermissionSet GetStandardSandbox(Evidence evidence) { return default(PermissionSet); }
public static void GetZoneAndOrigin(out System.Collections.ArrayList zone, out System.Collections.ArrayList origin) { zone = default(System.Collections.ArrayList); origin = default(System.Collections.ArrayList); }
[Obsolete]
public static bool IsGranted(IPermission perm) { return false; }
[Obsolete]
public static PolicyLevel LoadPolicyLevelFromFile(string path, PolicyLevelType type) { return default(PolicyLevel); }
[Obsolete]
public static PolicyLevel LoadPolicyLevelFromString(string str, PolicyLevelType type) { return default(PolicyLevel); }
[Obsolete]
public static IEnumerator PolicyHierarchy() { return default(IEnumerator); }
[Obsolete]
public static PermissionSet ResolvePolicy(Evidence evidence) { return default(PermissionSet); }
[Obsolete]
public static PermissionSet ResolvePolicy(System.Security.Policy.Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, out PermissionSet denied) { denied = default(System.Security.PermissionSet); return default(PermissionSet); }
[Obsolete]
public static PermissionSet ResolvePolicy(System.Security.Policy.Evidence[] evidences) { return default(PermissionSet); }
[Obsolete]
public static IEnumerator ResolvePolicyGroups(System.Security.Policy.Evidence evidence) { return default(IEnumerator); }
[Obsolete]
public static PermissionSet ResolveSystemPolicy(System.Security.Policy.Evidence evidence) { return default(PermissionSet); }
[Obsolete]
public static void SavePolicy() { }
[Obsolete]
public static void SavePolicyLevel(PolicyLevel level) { }
}
}
|