Claim 클래스
Defines the data and behavior of a single claim for a user.
네임스페이스: Microsoft.IdentityModel.Claims
어셈블리: Microsoft.IdentityModel(microsoft.identitymodel.dll에 있음)
사용법
Dim instance As Claim
구문
‘선언
Public Class Claim
public class Claim
public ref class Claim
public class Claim
public class Claim
설명
A Claim describes a property of a subject as observed by or attested to by an issuer. Examples include group or role membership, or age and geographic references. A claim can be evaluated to determine access rights to data and other secured resources during the process of authorization.
Claim.ClaimType is a string (typically a URI) that tells you what the value of the claim means. For example, a claim with a ClaimType of "https://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname” represents a user’s first name. This claim type was defined by Microsoft for use with CardSpace. A ClaimType of “urn:role” might be your own simple representation of a role. The point is that you don’t have to wait for a standards body to define a claim type that you need – as long as you and your issuer agree on what a particular claim means, you can call it anything you want.
Once you know the type of the claim, you can read its value from Claim.Value. In order to reduce dependencies and simplify administration the value of a claim is represented only as a string. For anything more complicated, it is recommended that you use standard XML schema types to serialize the value into a string. This is where Claim.ValueType comes in; it helps you figure out how to deserialize the value of the claim by telling you the format of the value.
상속 계층 구조
System.Object
Microsoft.IdentityModel.Claims.Claim
스레드 안전성
이 유형의 공용 정적(Visual Basic에서는 Shared) 멤버는 모두 스레드로부터 안전합니다.인스턴스 멤버는 스레드로부터 안전하지 않을 수 있습니다.
플랫폼
개발 플랫폼
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP