class

OAuth2::AccessToken::Mac

Inherits OAuth2::AccessToken / Reference / Object

Constructors

new(access_token : String, expires_in, mac_algorithm : String, mac_key : String, refresh_token : String | Nil = nil, scope : String | Nil = nil, issued_at : Int64 = Time.utc.to_unix, extra : Hash(String, String) | Nil = nil)
Source
new(pull : JSON::PullParser) : self
Source

Class methods

signature(ts, nonce : String, method : String, uri : String, host : String, port : Int32 | String, ext : String, mac_algorithm : String, mac_key : String) : String
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

authenticate(request : HTTP::Request, tls)
Source
hash(hasher)

See Object#hash(hasher)

issued_at
Source
issued_at=(issued_at : Int64)
Source
mac_algorithm
Source
mac_algorithm=(mac_algorithm : String)
Source
mac_key
Source
mac_key=(mac_key : String)
Source
to_json(json : JSON::Builder) : Nil
Source
token_type
Source