System.Security.Policy (mscorlib.dll)sealed class
public sealed class StrongName : IIdentityPermissionFactory, IBuiltInEvidence { // Public Constructors    public StrongName(System.Security.Permissions.StrongNamePublicKeyBlob blob,         string name, Version version); // Public Instance Properties    public string Name{get; }    public StrongNamePublicKeyBlob PublicKey{get; }    public Version Version{get; } // Public Instance Methods    public object Copy(  );    public IPermission CreateIdentityPermission(Evidence evidence);  // implements IIdentityPermissionFactory    public override bool Equals(object o);         // overrides object    public override int GetHashCode(  );     // overrides object    public override string ToString(  );     // overrides object }

The StrongName evidence class represents an assembly's strong name. The PublicKey property contains a System.Security.Permissions.StrongNamePublicKeyBlob object that contains the public key of the assembly's strong name. The Name property holds the simple name of the assembly, and the Version property contains a System.Version object that represents the assembly's version.

The StrongNameMembershipCondition class uses StrongName evidence during policy resolution to evaluate whether an assembly or application domain qualifies for membership of a CodeGroup.

Because the StrongName class implements the IIdentityPermissionFactory interface, an assembly or application domain with StrongName evidence will contain an appropriately configured System.Security.Permissions.StrongNameIdentityPermission object in its grant set.

Passed To

PolicyLevel.{AddFullTrustAssembly( ), RemoveFullTrustAssembly( )}

Programming. NET Security
Programming .Net Security
ISBN: 0596004427
EAN: 2147483647
Year: 2005
Pages: 346

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: