Partager via


Méthode ClaimsAuthenticationManager.Authenticate

Echoes back the incoming ClaimsIdentities.

Espace de noms: Microsoft.IdentityModel.Claims
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)

Utilisation

    Dim instance As ClaimsAuthenticationManager
Dim resourceName As String
Dim incomingPrincipal As IClaimsPrincipal
Dim returnValue As IClaimsPrincipal

returnValue = instance.Authenticate(resourceName, incomingPrincipal)

Syntaxe

'Déclaration
Public Overridable Function Authenticate ( _
    resourceName As String, _
    incomingPrincipal As IClaimsPrincipal _
) As IClaimsPrincipal
public virtual IClaimsPrincipal Authenticate (
    string resourceName,
    IClaimsPrincipal incomingPrincipal
)
public:
virtual IClaimsPrincipal^ Authenticate (
    String^ resourceName, 
    IClaimsPrincipal^ incomingPrincipal
)
public IClaimsPrincipal Authenticate (
    String resourceName, 
    IClaimsPrincipal incomingPrincipal
)
public function Authenticate (
    resourceName : String, 
    incomingPrincipal : IClaimsPrincipal
) : IClaimsPrincipal

Paramètres

  • resourceName
    The address to which the request was sent.
  • incomingPrincipal
    The credentials presented by the client (in the form of a SecurityToken) to access a resource at resourceName.

Valeur de retour

The IClaimsPrincipal given to the method.

Exceptions

Type d'exception Condition

Cohérence de thread

Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Plateformes de développement

Windows Server 2003, Windows Vista

Target Platforms

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

Voir aussi

Référence

Classe ClaimsAuthenticationManager
Membres ClaimsAuthenticationManager
Espace de noms Microsoft.IdentityModel.Claims