JwtParameters class
Represents all parameters extracted from a JWT, including header fields, standard properties, and claims.
public class JwtParameters
Public Members
name | description |
---|---|
JwtParameters() | The default constructor. |
Algorithm { get; set; } | Gets the algorithm (“alg”) used to sign the JWT. |
Audiences { get; set; } | Gets the audiences (“aud”) claim from the JWT. |
Claims { get; set; } | Gets all claims from the JWT payload, including custom claims, as a dictionary. |
Expires { get; set; } | Gets the “exp” (Expiration Time) claim from the JWT, indicating the time after which the token expires. |
Header { get; set; } | Gets the JWT header fields as a dictionary. |
IssuedAt { get; set; } | Gets the “iat” (Issued At) claim from the JWT, indicating when the token was issued. |
Issuer { get; set; } | Gets the issuer (“iss”) claim from the JWT. |
KeyId { get; set; } | Gets the key ID (“kid”) from the JWT header. |
NotBefore { get; set; } | Gets the “nbf” (Not Before) claim from the JWT, indicating the time before which the token is not valid. |
Subject { get; set; } | Gets the subject (“sub”) claim from the JWT. |
Type { get; set; } | Gets the type (“typ”) of the JWT, indicating the token type. |
See Also
- namespace Kestrun.Jwt