class

Kemal::Hmac::Token

Inherits Reference / Object

Constructors

new(subject : String, resource : String, timestamp : String, algorithm : OpenSSL::Algorithm | Nil = nil)

subject the subject of the token (String) resource the resource of the token (String) timestamp the timestamp of the token (String)

Source

Instance methods

hexdigest(secret : String) : String

Build an HMAC token with the given secret secret the secret used to build token returns HMAC token (hexdigest)

Source