class JWT::Token

Defined in:

jwt/token.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]

Class Method Detail

def self.decode(token : String) #

[View source]
def self.get_digest_for(name : JWT::Algorithm) #

[View source]

Instance Method Detail

def encode(io : IO, key : OpenSSL::RSA, algorithm : JWT::Algorithm) #

[View source]
def encode(key : OpenSSL::RSA, algorithm : JWT::Algorithm) #

[View source]
def encode(io : IO) #

[View source]
def encode #

[View source]
def headers #

[View source]
def headers64 : String #

[View source]
def headers64=(headers64 : String) #

[View source]
def payload #

[View source]
def payload64 : String #

[View source]
def payload64=(payload64 : String) #

[View source]
def signature : Slice(UInt8) #

[View source]
def signature64 : String #

[View source]
def signature64=(signature64 : String) #

[View source]