System.Security.Claims 命名空间

包含用于在 .NET 中实现基于声明的标识的类,其中包括表示声明、基于声明的标识和基于声明的主体的类。 Contains classes that implement claims-based identity in .NET, 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.