Defines the data and behavior of a claims-based representation of a single user.
Пространство имен: Microsoft.IdentityModel.Claims
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)
Использование
Visual Basic |
---|
Dim instance As IClaimsIdentity |
Синтаксис
Visual Basic |
---|
Public Interface IClaimsIdentity Inherits IIdentity |
C# |
---|
public interface IClaimsIdentity : IIdentity |
C++ |
---|
public interface class IClaimsIdentity : IIdentity |
J# |
---|
public interface IClaimsIdentity extends IIdentity |
JScript |
---|
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.