Taal

JwtSecurityTokenHandler.CreateActorValue(ClaimsIdentity) Methode

Definitie

Hiermee maakt u de 'waarde' voor de actorclaim: { actort, 'value' }

protected virtual string CreateActorValue(System.Security.Claims.ClaimsIdentity actor);
abstract member CreateActorValue : System.Security.Claims.ClaimsIdentity -> string
override this.CreateActorValue : System.Security.Claims.ClaimsIdentity -> string
Protected Overridable Function CreateActorValue (actor As ClaimsIdentity) As String

Parameters

actor
ClaimsIdentity

ClaimsIdentity als acteur.

Retouren

String die de acteur vertegenwoordigt.

Uitzonderingen

'actor' is null.

Opmerkingen

Als BootstrapContext dit niet null is:

Als 'type' 'tekenreeks' is, retourneert u als tekenreeks.

als 'type' BootstrapContext is en BootstrapContext.SecurityToken 'JwtSecurityToken' is

als 'JwtSecurityToken.RawData' != null, retourneert u RawData.

anders retourneren WriteToken(SecurityToken).

als 'BootstrapContext.Token' != null, retourneert u Token.

standaard: WriteToken(SecurityToken) new ( ( JwtSecurityTokenactor. Claims ).

Van toepassing op