class JWT::Builder

Defined in:

jwt/builder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(current_time : Time = Time.now, expiry_window : Time::Span = 1.hour) #

[View source]

Instance Method Detail

def algorithm : String #

[View source]
def audience : String | Nil #

[View source]
def audience=(audience : String | Nil) #

[View source]
def content_type : String | Nil #

[View source]
def content_type=(content_type : String | Nil) #

[View source]
def expires_at : Time | Nil #

[View source]
def expires_at=(expires_at : Time | Nil) #

[View source]
def expiry_window : Time::Span #

[View source]
def expiry_window=(expiry_window : Time::Span) #

[View source]
def generate #

[View source]
def headers #

Custom


[View source]
def issued_at : Time | Nil #

[View source]
def issued_at=(issued_at : Time | Nil) #

[View source]
def issuer : String | Nil #

Claims


[View source]
def issuer=(issuer : String | Nil) #

Claims


[View source]
def jwt_id : String | Nil #

[View source]
def jwt_id=(jwt_id : String | Nil) #

[View source]
def not_before : Time | Nil #

[View source]
def not_before=(not_before : Time | Nil) #

[View source]
def payload #

[View source]
def subject : String | Nil #

[View source]
def subject=(subject : String | Nil) #

[View source]
def type : String | Nil #

Headers


[View source]
def type=(type : String | Nil) #

Headers


[View source]