Class JsonWebTokenPayload
Represents the payload information of JSON Web Token that is based on the standard RFC 7519. This class cannot be inherited.
Inheritance
Namespace: Cuemon.Security.Web
Assembly: Cuemon.Security.dll
Syntax
public sealed class JsonWebTokenPayload
Constructors
| Improve this DocJsonWebTokenPayload()
Initializes a new instance of the JsonWebTokenPayload class.
Declaration
public JsonWebTokenPayload()
JsonWebTokenPayload(DataPair[])
Initializes a new instance of the JsonWebTokenPayload class.
Declaration
public JsonWebTokenPayload(params DataPair[] claims)
Parameters
Type | Name | Description |
---|---|---|
DataPair[] | claims | The public and/or private claims of the token. |
Properties
| Improve this DocAudience
Gets or sets the audience (aud) of the token.
Declaration
public string Audience { get; set; }
Property Value
Type | Description |
---|---|
System.String | The audience (aud) of the token. |
Claims
Gets the public and/or private claims of the token.
Declaration
public DataPairCollection Claims { get; }
Property Value
Type | Description |
---|---|
DataPairCollection | The public and/or private claims of the token. |
ExpirationTime
Gets or sets the expiration time (exp) of the token.
Declaration
public DateTime? ExpirationTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | The expiration time (exp) of the token. |
IssuedAt
Gets or sets the issued at (iat) of the token.
Declaration
public DateTime? IssuedAt { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | The issued at (iat) of the token. |
Issuer
Gets or sets the issuer (iss) of the token.
Declaration
public string Issuer { get; set; }
Property Value
Type | Description |
---|---|
System.String | The issuer (iss) of the token. |
JwtId
Gets or sets the JWT unique identifier (jti) of the token.
Declaration
public string JwtId { get; set; }
Property Value
Type | Description |
---|---|
System.String | The JWT unique identifier (jti) of the token. |
NotBefore
Gets or sets the not before (nbf) of the token.
Declaration
public DateTime? NotBefore { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | The not before (nbf) of the token. |
Subject
Gets or sets the subject (sub) of the token.
Declaration
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
System.String | The subject (sub) 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
Remarks
Calling this method provides the raw payload information of the JSON Web Token.