IIdentityPermissionFactory Interface
Defines the method that creates a new identity permission.
For a list of all members of this type, see IIdentityPermissionFactory Members.
[Visual Basic] Public Interface IIdentityPermissionFactory [C#] public interface IIdentityPermissionFactory [C++] public __gc __interface IIdentityPermissionFactory [JScript] public interface IIdentityPermissionFactory
Classes that Implement IIdentityPermissionFactory
| Class | Description |
|---|---|
| Publisher | Provides the Authenticode X.509v3 digital signature of a code assembly as evidence for policy evaluation. This class cannot be inherited. |
| Site | Provides the Web site from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited. |
| StrongName | Provides the strong name of a code assembly as evidence for policy evaluation. This class cannot be inherited. |
| Url | Provides the URL from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited. |
| Zone | Provides the security zone of a code assembly as evidence for policy evaluation. This class cannot be inherited. |
Remarks
Some types of evidence have a corresponding identity permission that is granted to assemblies with that evidence. This allows other code to make identity demands, so that only code with a specific piece of evidence will pass. For example, you can demand that your callers have a specific strong name; only callers with that strong name will pass the demand. By implementing IIdentityPermissionFactory for an evidence object, you provide an implementation of CreateIdentityPermission that the .NET Framework security system can call to get an identity permission that represents that piece of evidence. During policy resolution, the security system will call that method on all evidence objects that implement IIdentityPermissionFactory and grant the resulting identity permissions to the appropriate assembly.
Requirements
Namespace: System.Security.Policy
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Mscorlib (in Mscorlib.dll)
See Also
IIdentityPermissionFactory Members | System.Security.Policy Namespace | Evidence | Security Policy Management