MSDN Library

Microsoft Developer Network

IdentityPolicy Class

Namespace: System.Net.Security

Assembly: System.Net.dll

Note: This class is part of the Common Language Runtime (CLR) security infrastructure and may not be directly accessible or intended for general use in modern .NET applications. Consider using more current security mechanisms.

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: The System.Security.Principal.IIdentity to evaluate.
  • membershipCondition: The System.Security.Policy.IMembershipCondition to check against the identity.

bool IsGranted(System.Security.Policy.IIdentityPermission identityPermission)

Evaluates whether the specified identity permission is granted.

Parameters

  • identityPermission: The System.Security.Policy.IIdentityPermission to check.

See Also