SamlSecurityTokenHandler.AddDelegateToAttributes Methode

Definitie

Hiermee worden alle gedelegeerden toegevoegd die zijn gekoppeld aan het onderwerp ActAs in de kenmerkverzameling.

protected:
 virtual void AddDelegateToAttributes(System::Security::Claims::ClaimsIdentity ^ subject, System::Collections::Generic::ICollection<System::IdentityModel::Tokens::SamlAttribute ^> ^ attributes, System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
protected virtual void AddDelegateToAttributes(System.Security.Claims.ClaimsIdentity subject, System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute> attributes, System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member AddDelegateToAttributes : System.Security.Claims.ClaimsIdentity * System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute> * System.IdentityModel.Tokens.SecurityTokenDescriptor -> unit
override this.AddDelegateToAttributes : System.Security.Claims.ClaimsIdentity * System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute> * System.IdentityModel.Tokens.SecurityTokenDescriptor -> unit
Protected Overridable Sub AddDelegateToAttributes (subject As ClaimsIdentity, attributes As ICollection(Of SamlAttribute), tokenDescriptor As SecurityTokenDescriptor)

Parameters

subject
ClaimsIdentity

De gemachtigde van dit ClaimsIdentity object wordt geserialiseerd in een SamlAttribute. De gemachtigde wordt opgegeven door de Actor eigenschap.

attributes
ICollection<SamlAttribute>

De kenmerkverzameling waaraan het ActAs-token wordt geserialiseerd.

tokenDescriptor
SecurityTokenDescriptor

De tokendescriptor.

Uitzonderingen

subject is null.

– of –

tokenDescriptor is null.

Van toepassing op