IClaimsIdentity 接口

Defines the data and behavior of a claims-based representation of a single user.

命名空间: Microsoft.IdentityModel.Claims
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)

用法

    Dim instance As IClaimsIdentity

语法

声明
Public Interface IClaimsIdentity
    Inherits IIdentity
public interface IClaimsIdentity : IIdentity
public interface class IClaimsIdentity : IIdentity
public interface IClaimsIdentity extends IIdentity
public interface IClaimsIdentity extends IIdentity

备注

This interface defines the basic functionality of a ClaimsIdentity object. It is recommended that this interface be used to access the methods and properties of ClaimsIdentity instead of using ClaimsIdentity directly.

All ClaimsIdentity objects implement the IClaimsIdentity interface.

IClaimsIdentity extends IIdentity and when you look at a user’s identity, you can get her name the same way you always have. In addition, you can look at IClaimsIdentity.Claims to get more information pertaining of the user’s identity, like her email address.

If you’re familiar with X.509 certificates, imagine what a user authenticated using a certificate might look like when represented by this claims-based object model. The IClaimsIdentity you’d get for the user would contain claims from her certificate that include her name and public key. If you drilled into the Issuer of any of those claims, you’d arrive at a second IClaimsIdentity with the name and public key of the certificate authority that issued her certificate. Continuing up the chain, you would eventually come to the root certificate, which is self issued. Once you arrive at this IClaimsIdentity, all of the claims inside it would have Issuer equal to the Subject.

平台

开发平台

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

请参见

参考

IClaimsIdentity 成员
Microsoft.IdentityModel.Claims 命名空间