System.Security.Claims Namespace

包含以 .NET Framework 所實作之宣告式識別的類別,包括表示宣告、宣告式識別和宣告式識別主體。 Contains classes that implement claims-based identity in the .NET Framework, including classes that represent claims, claims-based identities, and claims-based principals.

類別

AuthenticationInformation

包含授權單位在建立主題的權杖時所判斷提示的驗證資訊。Contains the authentication information that an authority asserted when creating a token for a subject.

AuthenticationTypes

定義 AuthenticationType 屬性的驗證類型。Defines authentication types for the AuthenticationType property.

AuthorizationContext

提供授權事件的內容資訊。Provides context information of an authorization event. 這包括代表呼叫端的主體、被要求的資源,以及正在執行的動作。This includes the principal that represents the caller, the resource that is being requested, and the action that is being performed.

Claim

代表宣告。Represents a claim.

ClaimProperties

定義 Properties 屬性中所包含之屬性的金鑰。Defines the keys for properties contained in the Properties property.

ClaimsAuthenticationManager

定義宣告驗證管理員的基底實作。Defines the base implementation for a claims authentication manager. 宣告驗證管理員在宣告處理提供處理管線中提供一個位置,用於在執行您的應用程式程式碼之前套用處理邏輯 (篩選、驗證、延伸) 至連入主體的宣告集合。The claims authentication manager provides a place in the claims processing pipeline for applying processing logic (filtering, validation, extension) to the claims collection in the incoming principal before execution reaches your application code.

ClaimsAuthorizationManager

定義宣告授權管理員的基底實作。Defines the base implementation for a claims authorization manager.

ClaimsIdentity

代表宣告式身分識別。Represents a claims-based identity.

ClaimsPrincipal

IPrincipal 實作,其支援多個宣告式身分識別。An IPrincipal implementation that supports multiple claims-based identities.

ClaimTypes

定義可以指派給主體的已知宣告類型之常數。Defines constants for the well-known claim types that can be assigned to a subject. 這個類別無法被繼承。This class cannot be inherited.

ClaimValueTypes

根據 W3C 和 OASIS 所定義的型別 URI 來定義宣告實值型別。Defines claim value types according to the type URIs defined by W3C and OASIS. 這個類別無法被繼承。This class cannot be inherited.

DynamicRoleClaimProvider

這個類別所公開的單一方法 AddDynamicRoleClaims(ClaimsIdentity, IEnumerable<Claim>) 已經過時。The single method, AddDynamicRoleClaims(ClaimsIdentity, IEnumerable<Claim>), exposed by this class is obsolete. 您可以使用 ClaimsAuthenticationManager 物件將宣告加入至 ClaimsIdentity 物件。You can use a ClaimsAuthenticationManager object to add claims to a ClaimsIdentity object.