summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Security/ISecurityPolicyEncodable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/Security/ISecurityPolicyEncodable.cs')
-rw-r--r--src/mscorlib/src/System/Security/ISecurityPolicyEncodable.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Security/ISecurityPolicyEncodable.cs b/src/mscorlib/src/System/Security/ISecurityPolicyEncodable.cs
new file mode 100644
index 0000000000..515e724db5
--- /dev/null
+++ b/src/mscorlib/src/System/Security/ISecurityPolicyEncodable.cs
@@ -0,0 +1,27 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+//
+//
+// All encodable security classes that support encoding need to
+// implement this interface
+//
+
+namespace System.Security {
+
+ using System;
+ using System.Security.Util;
+ using System.Security.Policy;
+
+
+[System.Runtime.InteropServices.ComVisible(true)]
+ public interface ISecurityPolicyEncodable
+ {
+#if FEATURE_CAS_POLICY
+ SecurityElement ToXml( PolicyLevel level );
+
+ void FromXml( SecurityElement e, PolicyLevel level );
+#endif // FEATURE_CAS_POLICY
+ }
+
+}