Class JsonWebTokenHeader
Represents the header information of JSON Web Token that is based on the standard RFC 7519. This class cannot be inherited.
Inheritance
System.Object
JsonWebTokenHeader
Namespace: Cuemon.Security.Web
Assembly: Cuemon.Security.dll
Syntax
public sealed class JsonWebTokenHeader
Constructors
| Improve this DocJsonWebTokenHeader()
Initializes a new instance of the JsonWebTokenHeader class.
Declaration
public JsonWebTokenHeader()
JsonWebTokenHeader(String)
Initializes a new instance of the JsonWebTokenHeader class.
Declaration
public JsonWebTokenHeader(string type)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | The type of the token. Default is JWT. |
Properties
| Improve this DocAlgorithm
Gets or sets the algorithm of the token.
Declaration
public JsonWebTokenHashAlgorithm Algorithm { get; set; }
Property Value
Type | Description |
---|---|
JsonWebTokenHashAlgorithm | The algorithm of the token. |
Type
Gets the type of the token.
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
System.String | The type of the token. |
Methods
| Improve this DocToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
System.Object.ToString()
Remarks
Calling this method provides the raw header information of the JSON Web Token.