语言

SamlSecurityTokenHandler.SetDelegateFromAttribute 方法

定义

检测到特殊类型的 SamlAttribute 方法时,将调用此方法。 SamlAttribute传入的包装一个SamlAttribute包含属性值集合(在AttributeValues属性中),每个属性都将映射到声明。 所有声明都将在具有指定颁发者的一个 ClaimsIdentity 中返回。

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)

参数

attribute
SamlAttribute

要使用的 SamlAttribute 。

subject
ClaimsIdentity

这是 ClaimsIdentity 此令牌的主题。

issuer
String

声明的颁发者。

例外

不包含 SamlAttribute 任何有效的属性值。

适用于