IdentityPolicy Class
Namespace: System.Net.Security
Assembly: System.Net.dll
Remarks
The IdentityPolicy class provides a mechanism for validating the identity of an entity establishing a secure connection. It defines rules and criteria that must be met to consider an identity trustworthy. This class is crucial for implementing robust security protocols where verifying the authenticity of communicating parties is paramount.
It typically works in conjunction with other security classes to manage certificates, establish trust relationships, and enforce access control policies based on validated identities.
Inheritance Hierarchy
System.Object
↳ System.Net.Security.IdentityPolicy
Public Constructors
The IdentityPolicy class does not expose any public constructors. Instances are typically obtained through specific security contexts or factory methods.
Public Methods
bool IsGranted(System.Security.Principal.IIdentity identity, System.Security.Policy.IMembershipCondition membershipCondition)
Evaluates whether the specified identity satisfies the given membership condition.
Parameters
identity: TheSystem.Security.Principal.IIdentityto evaluate.membershipCondition: TheSystem.Security.Policy.IMembershipConditionto check against the identity.
bool IsGranted(System.Security.Policy.IIdentityPermission identityPermission)
Evaluates whether the specified identity permission is granted.
Parameters
identityPermission: TheSystem.Security.Policy.IIdentityPermissionto check.