Saml2SecurityTokenHandler.CreateActorString(ClaimsIdentity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>