class JWT::Payload

Included Modules

Defined in:

jwt_mapping.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new #

[View source]

Class Method Detail

def self.from_jwt(token : String, key : String = "", algorithm : JWT::Algorithm = JWT::Algorithm::None, verify = true, validate = true, **options) : Tuple #

[View source]
def self.from_jwt(token : String, algorithm : JWT::Algorithm | Nil = nil, verify = true, validate = true, **options, &) : Tuple #

[View source]

Instance Method Detail

def [](key) #

[View source]
def []?(key) #

[View source]
def as_h #

[View source]
def as_h? #

[View source]
def aud : String | Array(String) | Nil #

def aud=(aud : String | Array(String) | Nil) #

def audience : Array(String) | String | Nil #

[View source]
def audience=(value) #

[View source]
def exp : Time | Nil #

def exp=(exp : Time | Nil) #

def expiration : Time? #

[View source]
def expiration=(value) #

[View source]
def iat : Time | Nil #

def iat=(iat : Time | Nil) #

def iss : String | Nil #

def iss=(iss : String | Nil) #

def issued_at : Time? #

[View source]
def issued_at=(value) #

[View source]
def issuer : String? #

[View source]
def issuer=(value) #

[View source]
def json_unmapped : Hash(String, JSON::Any) #

def json_unmapped=(json_unmapped) #

def jti : String | Nil #

def jti=(jti : String | Nil) #

def jwt_id : String? #

[View source]
def jwt_id=(value) #

[View source]
def nbf : Time | Nil #

def nbf=(nbf : Time | Nil) #

def not_before : Time? #

[View source]
def not_before=(value) #

[View source]
def sub : String | Nil #

def sub=(sub : String | Nil) #

def subject : String? #

[View source]
def subject=(value) #

[View source]
def to_jwt(key : String, algorithm : JWT::Algorithm, **header_keys) : String #

[View source]