class

JWT::Token

Inherits Reference < Object

Constructors

new(headers : Hash(String, JSON::Type), payload : Hash(String, JSON::Type), signature : Slice(UInt8) | Nil = nil)

Class methods

decode(token : String)
get_digest_for(name : JWT::Algorithm)

Instance methods

encode(io : IO, key : OpenSSL::RSA, algorithm : JWT::Algorithm)
encode(key : OpenSSL::RSA, algorithm : JWT::Algorithm)
encode(io : IO)
encode
headers
headers64
headers64=(headers64 : String)
payload
payload64
payload64=(payload64 : String)
signature
signature64
signature64=(signature64 : String)