System.IdentityModel.Tokens.Jwt.JwtPayload
Initializes a new instance of JwtPayload which contains JSON objects representing the claims contained in the JWT. Each claim is a JSON object of the form { Name, Value }.
Gets the 'value' of the 'acr' claim { acr, 'value' }.
Gets the 'value' of the 'actor' claim { actort, 'value' }.
Gets the 'value' of the 'amr' claim { amr, 'value' } as list of strings.
Gets the 'value' of the 'audience' claim { aud, 'value' } as a list of strings.
Gets the 'value' of the 'auth_time' claim { auth_time, 'value' }.
Gets the 'value' of the 'azp' claim { azp, 'value' }.
Gets 'value' of the 'c_hash' claim { c_hash, 'value' }.
Gets a IEnumerable<T> Claim for each JSON { name, value }.
Gets the 'value' of the 'expiration' claim { exp, 'value' }.
Gets the 'value' of the 'expiration' claim { exp, 'value' }.
Gets the 'value' of the 'Issued At' claim { iat, 'value' }.
Gets the 'value' of the 'issuer' claim { iss, 'value' }.
Gets the 'value' of the 'issued at' claim { iat, 'value' } converted to a DateTime assuming 'value' is seconds since UnixEpoch (UTC 1970-01-01T0:0:0Z).
Gets the 'value' of the 'JWT ID' claim { jti, 'value' }.
Gets the 'value' of the 'expiration' claim { nbf, 'value' }.
Gets the 'value' of the 'nonce' claim { nonce, 'value' }.
Gets the 'value' of the 'notebefore' claim { nbf, 'value' }.
Gets the 'value' of the 'subject' claim { sub, 'value' }.
Gets the 'value' of the 'notbefore' claim { nbf, 'value' } converted to a DateTime assuming 'value' is seconds since UnixEpoch (UTC 1970-01-01T0:0:0Z).
Gets the 'value' of the 'expiration' claim { exp, 'value' } converted to a DateTime assuming 'value' is seconds since UnixEpoch (UTC 1970-01-01T0:0:0Z).
public JwtPayload()
Initializes a new instance of the JwtPayload class with no claims. Default string comparer Ordinal.
Creates a empty JwtPayload
Initializes a new instance of the JwtPayload class with IEnumerable<T>. Default string comparer Ordinal.
The claims to add.
public JwtPayload(string issuer, string audience, IEnumerable<Claim> claims, DateTime? notBefore, DateTime? expires)
Initializes a new instance of the JwtPayload class with claims added for each parameter specified. Default string comparer Ordinal.
public JwtPayload(string issuer, string audience, IEnumerable<Claim> claims, DateTime? notBefore, DateTime? expires, DateTime? issuedAt)
Initializes a new instance of the JwtPayload class with claims added for each parameter specified. Default string comparer Ordinal.
public JwtPayload(string issuer, IList<string> audiences, IEnumerable<Claim> claims, IDictionary<string, object> claimsCollection, DateTime? notBefore, DateTime? expires, DateTime? issuedAt)
Initializes a new instance of the JwtPayload class with claims added for each parameter specified. Default string comparer Ordinal.
public JwtPayload(string issuer, string audience, IList<string> audiences, IEnumerable<Claim> claims, IDictionary<string, object> claimsCollection, DateTime? notBefore, DateTime? expires, DateTime? issuedAt)
Initializes a new instance of the JwtPayload class with claims added for each parameter specified. Default string comparer Ordinal.
public JwtPayload(string issuer, string audience, IEnumerable<Claim> claims, IDictionary<string, object> claimsCollection, DateTime? notBefore, DateTime? expires, DateTime? issuedAt)
Initializes a new instance of the JwtPayload class with claims added for each parameter specified. Default string comparer Ordinal.
Deserializes Base64UrlEncoded JSON into a JwtPayload.
Deserialzes JSON into a JwtPayload instance.
Adds a JSON object representing the Claim to the JwtPayload
Adds a number of Claim to the JwtPayload as JSON { name, value } pairs.
Encodes this instance as Base64UrlEncoded JSON.
Serializes this instance to JSON.