Freigeben über


Saml2SecurityTokenHandler.CreateActorString(ClaimsIdentity) Method

Definition

Transforms a ClaimsIdentity into a string.

protected string CreateActorString (System.Security.Claims.ClaimsIdentity actor);
member this.CreateActorString : System.Security.Claims.ClaimsIdentity -> string
Protected Function CreateActorString (actor As ClaimsIdentity) As String

Parameters

actor
ClaimsIdentity

A ClaimsIdentity to be transformed.

Returns

A well-formed XML string.

Exceptions

if actor is null.

Remarks

Normally this is called when creating a Saml2Assertion from a ClaimsIdentity. When Actor is not null, this method is called to create an string representation to add as an attribute.

The string is formed: "<Actor><Attribute name, namespace><AttributeValue>...</AttributeValue>, ...</Attribute>...</Actor>

Applies to