2 // StrongNameIdentityPermission.cs: Strong Name Identity Permission
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2002 Motus Technologies Inc. (http://www.motus.com)
12 namespace System.Security.Permissions {
14 public sealed class StrongNameIdentityPermission : CodeAccessPermission {
16 private StrongNamePublicKeyBlob publickey;
18 private Version version;
20 public StrongNameIdentityPermission (PermissionState state)
22 if (state == PermissionState.Unrestricted)
23 throw new ArgumentException ("state");
26 public StrongNameIdentityPermission (StrongNamePublicKeyBlob blob, string name, Version version)
29 throw new ArgumentNullException ("blob");
31 throw new ArgumentNullException ("name");
33 throw new ArgumentNullException ("version");
37 this.version = version;
40 ~StrongNameIdentityPermission ()
49 public StrongNamePublicKeyBlob PublicKey {
50 get { return publickey; }
53 throw new ArgumentNullException ("value");
58 public Version Version {
59 get { return version; }
60 set { version = value; }
63 public override IPermission Copy ()
65 return new StrongNameIdentityPermission (publickey, name, version);
69 public override void FromXml (SecurityElement e)
72 throw new ArgumentNullException ("e");
73 throw new NotImplementedException ();
77 public override IPermission Intersect (IPermission target)
79 throw new NotImplementedException ();
83 public override bool IsSubsetOf (IPermission target)
85 throw new NotImplementedException ();
89 public override SecurityElement ToXml ()
91 throw new NotImplementedException ();
95 public override IPermission Union (IPermission target)
97 throw new NotImplementedException ();