Share via


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 に有効な属性値が含まれていません。

適用対象