Udostępnij przez


Saml2SecurityTokenHandler.SetDelegateFromAttribute Metoda

Definicja

Ta metoda jest wywoływana po wykryciu specjalnego typu Saml2Attribute . Przekazany Saml2Attribute w zawija element Saml2Attribute zawierający kolekcję wartości atrybutów (we Values właściwości), z których każda zostanie zamapowana na oświadczenie. Wszystkie oświadczenia zostaną zwrócone w obiekcie ClaimsIdentity z określonym wystawcą.

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

Do Saml2Attribute użycia.

subject
ClaimsIdentity

Jest ClaimsIdentity to temat tego tokenu.

issuer
String

Wystawca oświadczenia.

Wyjątki

Element Saml2Attribute nie zawiera żadnych prawidłowych wartości atrybutów.

Dotyczy