blob: fee707d002d3c3c1346893c37dce59278e492d8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
//
// System.Security.Permissions.PrincipalPermissionAttribute.cs
//
// Duncan Mak <duncan@ximian.com>
//
// (C) 2002 Ximian, Inc. http://www.ximian.com
//
using System;
using System.Security.Permissions;
namespace System.Security.Permissions
{
[AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Struct | AttributeTargets.Constructor |
AttributeTargets.Method)]
[Serializable]
public sealed class PrincipalPermissionAttribute : CodeAccessSecurityAttribute
{
// Fields
private bool authenticated;
private string name;
private string role;
// Constructor
public PrincipalPermissionAttribute (SecurityAction action)
: base (action)
{
}
// Properties
[MonoTODO]
public bool Authenticated
{
get { return authenticated; }
set { authenticated = value; }
}
[MonoTODO]
public string Name
{
get { return name; }
set { name = value; }
}
[MonoTODO]
public string Role
{
get { return role; }
set { role = value; }
}
// Method
[MonoTODO]
public override IPermission CreatePermission ()
{
return null;
}
}
}
|