Interfaccia IClaimsIdentity

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

Spazio dei nomi: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Utilizzo

    Dim instance As IClaimsIdentity

Sintassi

'Dichiarazione
Public Interface IClaimsIdentity
    Inherits IIdentity
public interface IClaimsIdentity : IIdentity
public interface class IClaimsIdentity : IIdentity
public interface IClaimsIdentity extends IIdentity
public interface IClaimsIdentity extends IIdentity

Commenti

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.

Piattaforme

Piattaforme di sviluppo

Windows Server 2003, Windows Vista

Target Platforms

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

Vedere anche

Riferimento

Membri IClaimsIdentity
Spazio dei nomi Microsoft.IdentityModel.Claims