<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.17.0" />

Microsoft.IdentityModel.JsonWebTokens.JwtConstants

public static class JwtConstants
Constants for JSON Web Tokens.
public const string DirectKeyUseAlg = "dir"

JWE header alg indicating a shared symmetric key is directly used as CEK.

public const string HeaderType = "JWT"

Short header type.

public const string HeaderTypeAlt = "http://openid.net/specs/jwt/1.0"

Long header type.

public const string JsonCompactSerializationRegex = "^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$"

JWS - Token format: 'header.payload.signature'. Signature is optional, but '.' is required.

public const string JweCompactSerializationRegex = "^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+$"

JWE - Token format: 'protectedheader.encryptedkey.iv.cyphertext.authenticationtag'.

public const int JweSegmentCount = 5

The number of parts in a JWE token.

public const int JwsSegmentCount = 3

The number of parts in a JWS token.

public const int MaxJwtSegmentCount = 5

The maximum number of parts in a JWT.

public const string TokenType = "JWT"

Short token type.

public const string TokenTypeAlt = "urn:ietf:params:oauth:token-type:jwt"

Long token type.