Click or drag to resize

JsonWebTokenUtilityCreateSecurityToken Method

Creates a Json Web Token (JWT) by given parameters (using a given security key.)

Namespace:  Hummingbird.TestFramework.Util
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public static JwtSecurityToken CreateSecurityToken(
	SecurityKey securityKey,
	string algorithm,
	JwtPayload payload,
	out string token
)

Parameters

securityKey
Type: SecurityKey
An security key used to sign the token. The SecurityKey must compatible with selected algorithm.
algorithm
Type: SystemString
The signature or encryption algorithm, choose one from SecurityAlgorithms.
payload
Type: JwtPayload
The JWT payload.
token
Type: SystemString
The string representation of the web token that can be used by the client.

Return Value

Type: JwtSecurityToken
A Json Web Token generated with given parameters
See Also