Claim Class
Collapse the table of content
Expand the table of content

Claim Class

 

Represents a claim that is associated with an entity.

Namespace:   System.IdentityModel.Claims
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

System::Object
  System.IdentityModel.Claims::Claim

[DataContractAttribute(Namespace = "http://schemas.xmlsoap.org/ws/2005/05/identity")]
public ref class Claim 

NameDescription
System_CAPS_pubmethodClaim(String^, Object^, String^)

Initializes a new instance of the Claim class with the specified type, resource, and right.

NameDescription
System_CAPS_pubpropertyClaimType

Gets the type of the claim.

System_CAPS_pubpropertySystem_CAPS_staticDefaultComparer

Gets an object that can compare two Claim objects for equality.

System_CAPS_pubpropertyResource

Gets the resource with which this Claim object is associated.

System_CAPS_pubpropertyRight

A string representation of a uniform resource identifier (URI) that specifies the right associated with this Claim object. Pre-defined rights are available as static properties of the Rights class.

System_CAPS_pubpropertySystem_CAPS_staticSystem

A pre-defined claim that represents the system entity.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateDenyOnlyWindowsSidClaim(SecurityIdentifier^)

Creates a Claim object that represents a deny-only specified security identifier (SID).

System_CAPS_pubmethodSystem_CAPS_staticCreateDnsClaim(String^)

Creates a Claim object that represents the specified Domain Name System (DNS) name.

System_CAPS_pubmethodSystem_CAPS_staticCreateHashClaim(array<Byte>^)

Creates a Claim object that represents the specified hash value.

System_CAPS_pubmethodSystem_CAPS_staticCreateMailAddressClaim(MailAddress^)

Creates a Claim object that represents the specified email address.

System_CAPS_pubmethodSystem_CAPS_staticCreateNameClaim(String^)

Creates a Claim object that represents the specified name.

System_CAPS_pubmethodSystem_CAPS_staticCreateRsaClaim(RSA^)

Creates a Claim object that represents the specified RSA key.

System_CAPS_pubmethodSystem_CAPS_staticCreateSpnClaim(String^)

Creates a Claim object that represents the specified Service Principal Name (SPN).

System_CAPS_pubmethodSystem_CAPS_staticCreateThumbprintClaim(array<Byte>^)

Creates a Claim object that represents the specified thumbprint.

System_CAPS_pubmethodSystem_CAPS_staticCreateUpnClaim(String^)

Creates a Claim object that represents the specified Universal Principal Name (UPN).

System_CAPS_pubmethodSystem_CAPS_staticCreateUriClaim(Uri^)

Creates a Claim object that represents the specified Uniform Resource Locator (URL).

System_CAPS_pubmethodSystem_CAPS_staticCreateWindowsSidClaim(SecurityIdentifier^)

Creates a Claim object that represents the specified security identifier (SID).

System_CAPS_pubmethodSystem_CAPS_staticCreateX500DistinguishedNameClaim(X500DistinguishedName^)

Creates a Claim object that represents the specified X.500 distinguished name.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object represents the same claim as the current Claim object.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns a hash code for the current claim.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string representation of this Claim object.(Overrides Object::ToString().)

The Identity Model is a claims-based authorization system. Claims describe the capabilities associated with some entity in the system, often a user of that system. The set of claims associated with a given entity can be thought of as a key. The particular claims define the shape of that key; much like a physical key is used to open a lock in a door. In this way, claims are used to gain access to resources. Access to a given protected resource is determined by comparing the claims required to access that resource with the claims associated with the entity that attempts access.

A claim is the expression of a right with respect to a particular value. A right could be read, write, or possess. A value could be a database, a file, a mailbox, or a property. Claims also have a claim type. The combination of claim type and right provides the mechanism for capabilities being specified with respect to the value. For example, a claim of type file with the right read over the value biography.doc indicates that the entity with such a claim has read access to the file biography.doc. A claim of type name with the right PossessProperty over the value Martin indicates that the entity with the claim possesses a Name property with the value Martin.

Although various claim types and rights are defined as part of Identity Model, the system is extensible. The various systems building on top of the Identity Model infrastructure can define claim types and rights as required.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft