Sdílet prostřednictvím


Saml2SecurityTokenHandler.SetDelegateFromAttribute Metoda

Definice

Tato metoda se volá při zjištění speciálního Saml2Attribute typu. Předaný Saml2Attribute zabalí Saml2Attribute objekt, který obsahuje kolekci hodnot atributů (ve Values vlastnosti), z nichž každá se mapuje na deklaraci identity. Všechny deklarace identity se vrátí v zprostředkovateli ClaimsIdentity se zadaným vystavitelem.

protected:
 virtual void SetDelegateFromAttribute(System::IdentityModel::Tokens::Saml2Attribute ^ attribute, System::Security::Claims::ClaimsIdentity ^ subject, System::String ^ issuer);
protected virtual void SetDelegateFromAttribute (System.IdentityModel.Tokens.Saml2Attribute attribute, System.Security.Claims.ClaimsIdentity subject, string issuer);
abstract member SetDelegateFromAttribute : System.IdentityModel.Tokens.Saml2Attribute * System.Security.Claims.ClaimsIdentity * string -> unit
override this.SetDelegateFromAttribute : System.IdentityModel.Tokens.Saml2Attribute * System.Security.Claims.ClaimsIdentity * string -> unit
Protected Overridable Sub SetDelegateFromAttribute (attribute As Saml2Attribute, subject As ClaimsIdentity, issuer As String)

Parametry

attribute
Saml2Attribute

Příkaz Saml2Attribute , který se má použít.

subject
ClaimsIdentity

To ClaimsIdentity je předmět tohoto tokenu.

issuer
String

Vystavitel deklarace identity.

Výjimky

Hodnota Saml2Attribute neobsahuje žádné platné hodnoty atributu.

Platí pro