mscorlib(4.0.0.0) API with additions
System.Security.Policy Namespace Reference

Classes

class  AllMembershipCondition
 Represents a membership condition that matches all code. This class cannot be inherited. More...
 
class  ApplicationDirectory
 Provides the application directory as evidence for policy evaluation. This class cannot be inherited. More...
 
class  ApplicationDirectoryMembershipCondition
 Determines whether an assembly belongs to a code group by testing its application directory. This class cannot be inherited. More...
 
class  ApplicationSecurityInfo
 Holds the security evidence for an application. This class cannot be inherited. More...
 
class  ApplicationSecurityManager
 Manages trust decisions for manifest-activated applications. More...
 
class  ApplicationTrust
 Encapsulates security decisions about an application. This class cannot be inherited. More...
 
class  ApplicationTrustCollection
 Represents a collection of T:System.Security.Policy.ApplicationTrust objects. This class cannot be inherited. More...
 
class  ApplicationTrustEnumerator
 Represents the enumerator for T:System.Security.Policy.ApplicationTrust objects in the T:System.Security.Policy.ApplicationTrustCollection collection. More...
 
class  CodeConnectAccess
 Specifies the network resource access that is granted to code. More...
 
class  CodeGroup
 Represents the abstract base class from which all implementations of code groups must derive. More...
 
class  Evidence
 Defines the set of information that constitutes input to security policy decisions. This class cannot be inherited. More...
 
class  EvidenceBase
 Provides a base class from which all objects to be used as evidence must derive. More...
 
class  FileCodeGroup
 Grants permission to manipulate files located in the code assemblies to code assemblies that match the membership condition. This class cannot be inherited. More...
 
class  FirstMatchCodeGroup
 Allows security policy to be defined by the union of the policy statement of a code group and that of the first child code group that matches. This class cannot be inherited. More...
 
class  GacInstalled
 Confirms that a code assembly originates in the global assembly cache (GAC) as evidence for policy evaluation. This class cannot be inherited. More...
 
class  GacMembershipCondition
 Determines whether an assembly belongs to a code group by testing its global assembly cache membership. This class cannot be inherited. More...
 
class  Hash
 Provides evidence about the hash value for an assembly. This class cannot be inherited. More...
 
class  HashMembershipCondition
 Determines whether an assembly belongs to a code group by testing its hash value. This class cannot be inherited. More...
 
interface  IApplicationTrustManager
 Determines whether an application should be executed and which set of permissions should be granted to it. More...
 
interface  IIdentityPermissionFactory
 Defines the method that creates a new identity permission. More...
 
interface  IMembershipCondition
 Defines the test to determine whether a code assembly is a member of a code group. More...
 
class  NetCodeGroup
 Grants Web permission to the site from which the assembly was downloaded. This class cannot be inherited. More...
 
class  PermissionRequestEvidence
 Defines evidence that represents permission requests. This class cannot be inherited. More...
 
class  PolicyException
 The exception that is thrown when policy forbids code to run. More...
 
class  PolicyLevel
 Represents the security policy levels for the common language runtime. This class cannot be inherited. More...
 
class  PolicyStatement
 Represents the statement of a T:System.Security.Policy.CodeGroup describing the permissions and other information that apply to code with a particular set of evidence. This class cannot be inherited. More...
 
class  Publisher
 Provides the Authenticode X.509v3 digital signature of a code assembly as evidence for policy evaluation. This class cannot be inherited. More...
 
class  PublisherMembershipCondition
 Determines whether an assembly belongs to a code group by testing its software publisher's Authenticode X.509v3 certificate. This class cannot be inherited. More...
 
class  Site
 Provides the Web site from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited. More...
 
class  SiteMembershipCondition
 Determines whether an assembly belongs to a code group by testing the site from which it originated. This class cannot be inherited. More...
 
class  StrongName
 Provides the strong name of a code assembly as evidence for policy evaluation. This class cannot be inherited. More...
 
class  StrongNameMembershipCondition
 Determines whether an assembly belongs to a code group by testing its strong name. This class cannot be inherited. More...
 
class  TrustManagerContext
 Represents the context for the trust manager to consider when making the decision to run an application, and when setting up the security on a new T:System.AppDomain in which to run an application. More...
 
class  UnionCodeGroup
 Represents a code group whose policy statement is the union of the current code group's policy statement and the policy statement of all its matching child code groups. This class cannot be inherited. More...
 
class  Url
 Provides the URL from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited. More...
 
class  UrlMembershipCondition
 Determines whether an assembly belongs to a code group by testing its URL. This class cannot be inherited. More...
 
class  Zone
 Provides the security zone of a code assembly as evidence for policy evaluation. This class cannot be inherited. More...
 
class  ZoneMembershipCondition
 Determines whether an assembly belongs to a code group by testing its zone of origin. This class cannot be inherited. More...
 

Enumerations

enum  ApplicationVersionMatch { ApplicationVersionMatch.MatchExactVersion, ApplicationVersionMatch.MatchAllVersions }
 Specifies how to match versions when locating application trusts in a collection. More...
 
enum  ConfigId { None, MachinePolicyLevel, UserPolicyLevel, EnterprisePolicyLevel }
 
enum  EvidenceTypeGenerated {
  AssemblySupplied, Gac, Hash, PermissionRequest,
  Publisher, Site, StrongName, Url,
  Zone
}
 
enum  PolicyStatementAttribute { PolicyStatementAttribute.Nothing = 0x0, PolicyStatementAttribute.Exclusive = 0x1, PolicyStatementAttribute.LevelFinal = 0x2, PolicyStatementAttribute.All = 0x3 }
 Defines special attribute flags for security policy on code groups. More...
 
enum  TrustManagerUIContext { TrustManagerUIContext.Install, TrustManagerUIContext.Upgrade, TrustManagerUIContext.Run }
 Specifies the type of user interface (UI) the trust manager should use for trust decisions. More...
 

Enumeration Type Documentation

◆ ApplicationVersionMatch

Specifies how to match versions when locating application trusts in a collection.

Enumerator
MatchExactVersion 

Match on the exact version.

MatchAllVersions 

Match on all versions.

Definition at line 7 of file ApplicationVersionMatch.cs.

◆ PolicyStatementAttribute

Defines special attribute flags for security policy on code groups.

Enumerator
Nothing 

No flags are set.

Exclusive 

The exclusive code group flag. When a code group has this flag set, only the permissions associated with that code group are granted to code belonging to the code group. At most, one code group matching a given piece of code can be set as exclusive.

LevelFinal 

The flag representing a policy statement that causes lower policy levels to not be evaluated as part of the resolve operation, effectively allowing the policy level to override lower levels.

All 

All attribute flags are set.

Definition at line 9 of file PolicyStatementAttribute.cs.

◆ TrustManagerUIContext

Specifies the type of user interface (UI) the trust manager should use for trust decisions.

Enumerator
Install 

An Install UI.

Upgrade 

An Upgrade UI.

Run 

A Run UI.

Definition at line 7 of file TrustManagerUIContext.cs.