C# 클래스 System.Security.Claims.Claim

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
Claim ( System reader )
Claim ( System reader, System subject )
Claim ( string type, string value )
Claim ( string type, string value, string valueType )
Claim ( string type, string value, string valueType, string issuer )
Claim ( string type, string value, string valueType, string issuer, string originalIssuer )
Claim ( string type, string value, string valueType, string issuer, string originalIssuer, System subject )
Claim ( BinaryReader reader ) : System.Collections.Generic

Initializes an instance of Claim using a BinaryReader. Normally the BinaryReader is constructed using the bytes from WriteTo(BinaryWriter) and initialized in the same way as the BinaryWriter.

Claim ( BinaryReader reader, ClaimsIdentity subject ) : System.Collections.Generic

Initializes an instance of Claim using a BinaryReader. Normally the BinaryReader is constructed using the bytes from WriteTo(BinaryWriter) and initialized in the same way as the BinaryWriter.

Claim ( string type, string value ) : System.Collections.Generic

Creates a Claim with the specified type and value.

Claim.Issuer is set to ClaimsIdentity.DefaultIssuer, Claim.ValueType is set to ClaimValueTypes.String, Claim.OriginalIssuer is set to ClaimsIdentity.DefaultIssuer, and Claim.Subject is set to null.

Claim ( string type, string value, string valueType ) : System.Collections.Generic

Creates a Claim with the specified type, value, and value type.

Claim.Issuer is set to ClaimsIdentity.DefaultIssuer, Claim.OriginalIssuer is set to ClaimsIdentity.DefaultIssuer, and Claim.Subject is set to null.

Claim ( string type, string value, string valueType, string issuer ) : System.Collections.Generic

Creates a Claim with the specified type, value, value type, and issuer.

Claim.OriginalIssuer is set to value of the issuer parameter, Claim.Subject is set to null.

Claim ( string type, string value, string valueType, string issuer, string originalIssuer ) : System.Collections.Generic

Creates a Claim with the specified type, value, value type, issuer and original issuer.

Claim.Subject is set to null.

Claim ( string type, string value, string valueType, string issuer, string originalIssuer, ClaimsIdentity subject ) : System.Collections.Generic

Creates a Claim with the specified type, value, value type, issuer, original issuer and subject.

Clone ( ) : Claim

Creates a new instance Claim with values copied from this object.

Clone ( ClaimsIdentity identity ) : Claim

Creates a new instance Claim with values copied from this object.

Claim.Subject will be set to 'identity'.

Clone ( ) : System.Security.Claims.Claim
Clone ( System identity ) : System.Security.Claims.Claim
ToString ( ) : string

Returns a string representation of the Claim object.

The returned string contains the values of the Type and Value properties.

WriteTo ( BinaryWriter writer ) : void

Serializes using a BinaryWriter

WriteTo ( System writer ) : void

보호된 메소드들

메소드 설명
Claim ( Claim other ) : System.Collections.Generic

Copy constructor for Claim

Claim.Subjectwill be set to 'null'.

Claim ( Claim other, ClaimsIdentity subject ) : System.Collections.Generic

Copy constructor for Claim

Claim.Subjectwill be set to 'subject'.

WriteTo ( BinaryWriter writer, byte userData ) : void

Serializes using a BinaryWriter

WriteTo ( System writer, byte userData ) : void

비공개 메소드들

메소드 설명
Claim ( string type, string value, string valueType, string issuer, string originalIssuer, ClaimsIdentity subject, string propertyKey, string propertyValue ) : System.Collections.Generic

This internal constructor was added as a performance boost when adding claims that are found in the NTToken. We need to add a property value to distinguish DeviceClaims from UserClaims.

Initialize ( BinaryReader reader, ClaimsIdentity subject ) : void

메소드 상세

Claim() 공개 메소드

public Claim ( System reader )
reader System

Claim() 공개 메소드

public Claim ( System reader, System subject )
reader System
subject System

Claim() 공개 메소드

public Claim ( string type, string value )
type string
value string

Claim() 공개 메소드

public Claim ( string type, string value, string valueType )
type string
value string
valueType string

Claim() 공개 메소드

public Claim ( string type, string value, string valueType, string issuer )
type string
value string
valueType string
issuer string

Claim() 공개 메소드

public Claim ( string type, string value, string valueType, string issuer, string originalIssuer )
type string
value string
valueType string
issuer string
originalIssuer string

Claim() 공개 메소드

public Claim ( string type, string value, string valueType, string issuer, string originalIssuer, System subject )
type string
value string
valueType string
issuer string
originalIssuer string
subject System

Claim() 공개 메소드

Initializes an instance of Claim using a BinaryReader. Normally the BinaryReader is constructed using the bytes from WriteTo(BinaryWriter) and initialized in the same way as the BinaryWriter.
if 'reader' is null.
public Claim ( BinaryReader reader ) : System.Collections.Generic
reader System.IO.BinaryReader a pointing to a .
리턴 System.Collections.Generic

Claim() 공개 메소드

Initializes an instance of Claim using a BinaryReader. Normally the BinaryReader is constructed using the bytes from WriteTo(BinaryWriter) and initialized in the same way as the BinaryWriter.
if 'reader' is null.
public Claim ( BinaryReader reader, ClaimsIdentity subject ) : System.Collections.Generic
reader System.IO.BinaryReader a pointing to a .
subject ClaimsIdentity the value for , which is the that has these claims.
리턴 System.Collections.Generic

Claim() 보호된 메소드

Copy constructor for Claim
Claim.Subjectwill be set to 'null'.
if 'other' is null.
protected Claim ( Claim other ) : System.Collections.Generic
other Claim the to copy.
리턴 System.Collections.Generic

Claim() 보호된 메소드

Copy constructor for Claim
Claim.Subjectwill be set to 'subject'.
if 'other' is null.
protected Claim ( Claim other, ClaimsIdentity subject ) : System.Collections.Generic
other Claim the to copy.
subject ClaimsIdentity the to assign to .
리턴 System.Collections.Generic

Claim() 공개 메소드

Creates a Claim with the specified type and value.
Claim.Issuer is set to ClaimsIdentity.DefaultIssuer, Claim.ValueType is set to ClaimValueTypes.String, Claim.OriginalIssuer is set to ClaimsIdentity.DefaultIssuer, and Claim.Subject is set to null.
or is null.
public Claim ( string type, string value ) : System.Collections.Generic
type string The claim type.
value string The claim value.
리턴 System.Collections.Generic

Claim() 공개 메소드

Creates a Claim with the specified type, value, and value type.
Claim.Issuer is set to ClaimsIdentity.DefaultIssuer, Claim.OriginalIssuer is set to ClaimsIdentity.DefaultIssuer, and Claim.Subject is set to null.
or is null.
public Claim ( string type, string value, string valueType ) : System.Collections.Generic
type string The claim type.
value string The claim value.
valueType string The claim value type.
리턴 System.Collections.Generic

Claim() 공개 메소드

Creates a Claim with the specified type, value, value type, and issuer.
Claim.OriginalIssuer is set to value of the issuer parameter, Claim.Subject is set to null.
or is null.
public Claim ( string type, string value, string valueType, string issuer ) : System.Collections.Generic
type string The claim type.
value string The claim value.
valueType string The claim value type. If this parameter is empty or null, then is used.
issuer string The claim issuer. If this parameter is empty or null, then is used.
리턴 System.Collections.Generic

Claim() 공개 메소드

Creates a Claim with the specified type, value, value type, issuer and original issuer.
Claim.Subject is set to null.
or is null.
public Claim ( string type, string value, string valueType, string issuer, string originalIssuer ) : System.Collections.Generic
type string The claim type.
value string The claim value.
valueType string The claim value type. If this parameter is null, then is used.
issuer string The claim issuer. If this parameter is empty or null, then is used.
originalIssuer string The original issuer of this claim. If this parameter is empty or null, then orignalIssuer == issuer.
리턴 System.Collections.Generic

Claim() 공개 메소드

Creates a Claim with the specified type, value, value type, issuer, original issuer and subject.
or is null.
public Claim ( string type, string value, string valueType, string issuer, string originalIssuer, ClaimsIdentity subject ) : System.Collections.Generic
type string The claim type.
value string The claim value.
valueType string The claim value type. If this parameter is null, then is used.
issuer string The claim issuer. If this parameter is empty or null, then is used.
originalIssuer string The original issuer of this claim. If this parameter is empty or null, then orignalIssuer == issuer.
subject ClaimsIdentity The subject that this claim describes.
리턴 System.Collections.Generic

Clone() 공개 메소드

Creates a new instance Claim with values copied from this object.
public Clone ( ) : Claim
리턴 Claim

Clone() 공개 메소드

Creates a new instance Claim with values copied from this object.
Claim.Subject will be set to 'identity'.
public Clone ( ClaimsIdentity identity ) : Claim
identity ClaimsIdentity
리턴 Claim

Clone() 공개 메소드

public Clone ( ) : System.Security.Claims.Claim
리턴 System.Security.Claims.Claim

Clone() 공개 메소드

public Clone ( System identity ) : System.Security.Claims.Claim
identity System
리턴 System.Security.Claims.Claim

ToString() 공개 메소드

Returns a string representation of the Claim object.
The returned string contains the values of the Type and Value properties.
public ToString ( ) : string
리턴 string

WriteTo() 공개 메소드

Serializes using a BinaryWriter
if 'writer' is null.
public WriteTo ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter the to use for data storage.
리턴 void

WriteTo() 보호된 메소드

Serializes using a BinaryWriter
if 'writer' is null.
protected WriteTo ( BinaryWriter writer, byte userData ) : void
writer System.IO.BinaryWriter the to use for data storage.
userData byte additional data provided by derived type.
리턴 void

WriteTo() 공개 메소드

public WriteTo ( System writer ) : void
writer System
리턴 void

WriteTo() 보호된 메소드

protected WriteTo ( System writer, byte userData ) : void
writer System
userData byte
리턴 void