Show / Hide Table of Contents

    Class JsonWebTokenPayload

    Represents the payload information of JSON Web Token that is based on the standard RFC 7519. This class cannot be inherited.

    Inheritance
    System.Object
    JsonWebTokenPayload
    Namespace: Cuemon.Security.Web
    Assembly: Cuemon.Security.dll
    Syntax
    public sealed class JsonWebTokenPayload

    Constructors

    | Improve this Doc

    JsonWebTokenPayload()

    Initializes a new instance of the JsonWebTokenPayload class.

    Declaration
    public JsonWebTokenPayload()
    | Improve this Doc

    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 Doc

    Audience

    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.

    | Improve this Doc

    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.

    | Improve this Doc

    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.

    | Improve this Doc

    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.

    | Improve this Doc

    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.

    | Improve this Doc

    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.

    | Improve this Doc

    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.

    | Improve this Doc

    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 Doc

    ToString()

    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 payload information of the JSON Web Token.

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX