JWT
Constants
VERSION = "1.7.2"
Instance methods
asn1_to_raw(signature : Bytes, private_key : OpenSSL::PKey::EC) : Bytes
OpenSSL returns signatures encoded as ASN.1 values However the JWT specification requires these to be raw integers
decode(token : String, key : String = "", algorithm : Algorithm = Algorithm::None, verify = true, validate = true, **options) : Tuple
Sourcedecode(token : String, algorithm : Algorithm | Nil = nil, verify = true, validate = true, **options, &) : Tuple
Sourceencode(payload, key : String, algorithm : Algorithm, **header_keys) : String
Sourceencode_header(algorithm : Algorithm, **keys) : String
Sourceencode_payload(payload) : String
Sourceencoded_signature(algorithm : Algorithm, key : String, data : String)
Sourceraw_to_asn1(signature : Bytes, public_key : OpenSSL::PKey::EC) : Bytes
Sourcesign(algorithm : Algorithm, key : String, data : String)
Source