using System.Collections.Generic; namespace Jwt { /// /// Represents a JSON Web Token. /// public class JwtData { /// /// Gets or sets the bytes representing the key of the JWT. /// public byte[] KeyBytes { get; set; } /// /// Gets or sets a string representing the key of the JWT. /// public string Key { get; set; } /// /// Gets or sets the payload of the JWT. /// public object Payload { get; set; } /// /// Gets or sets the hashing algorithm being used for the JWT. /// public JwtHashAlgorithm Algorithm { get; set; } = JwtHashAlgorithm.HS256; /// /// Gets or sets a value indicating whether the payload is already serialized to JSON. /// public bool Serialized { get; set; } /// /// Gets or sets a dictionary of extra heading to append to the JWT. /// public IDictionary ExtraHeaders { get; set; } } }