Click or drag to resize

Jwt Class

A lightweight implementation of Json Web Token (JWT) suitable for use by client applications. The JWT structure is described here.
Inheritance Hierarchy
SystemObject
  Neon.NetJwt

Namespace:  Neon.Net
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.4.1
Syntax
public class Jwt

The Jwt type exposes the following members.

Properties
  NameDescription
Public propertyHeader
Returns a Newtonsoft JObject with the JWT header properties.
Public propertyPayload
Returns a Newtonsoft JObject with the JWT payload properties.
Public propertySignature
Returns the JWT signature as a byte array.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberParse

Parses a Jwt from an encoded string.

Note Note
WARNING: This method does not verify the signature so it is not suitable for verifying a JWT's authenticity.
Public methodToString

Renders the JWT back into its encoded string format.

Note Note
This method currently returns the original string used to parse the JWT. It does not actually perform any encoding so any changes made to the properties will not be included in the output.
(Overrides ObjectToString.)
Top
See Also