Sdílet prostřednictvím


SamlSecurityTokenHandler.SetDelegateFromAttribute Metoda

Definice

Tato metoda se volá při zjištění speciálního SamlAttribute typu. Předaný SamlAttribute zabalí SamlAttribute objekt, který obsahuje kolekci hodnot atributů (ve AttributeValues 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::SamlAttribute ^ attribute, System::Security::Claims::ClaimsIdentity ^ subject, System::String ^ issuer);
protected virtual void SetDelegateFromAttribute (System.IdentityModel.Tokens.SamlAttribute attribute, System.Security.Claims.ClaimsIdentity subject, string issuer);
abstract member SetDelegateFromAttribute : System.IdentityModel.Tokens.SamlAttribute * System.Security.Claims.ClaimsIdentity * string -> unit
override this.SetDelegateFromAttribute : System.IdentityModel.Tokens.SamlAttribute * System.Security.Claims.ClaimsIdentity * string -> unit
Protected Overridable Sub SetDelegateFromAttribute (attribute As SamlAttribute, subject As ClaimsIdentity, issuer As String)

Parametry

attribute
SamlAttribute

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

subject
ClaimsIdentity

To ClaimsIdentity je předmět tohoto tokenu.

issuer
String

Vystavitel deklarace identity.

Výjimky

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

Platí pro