Module: Hawk::Crypto
- Extended by:
- Crypto
- Included in:
- Crypto
- Defined in:
- lib/hawk/crypto.rb
Defined Under Namespace
Classes: Base, Bewit, Hash, Mac, TSMac
Instance Method Summary
collapse
Instance Method Details
#bewit(options) ⇒ Object
205
206
207
208
209
210
211
212
|
# File 'lib/hawk/crypto.rb', line 205
def bewit(options)
Bewit.new(
options[:credentials][:id],
options[:credentials][:key],
options,
options[:credentials][:algorithm]
)
end
|
#hash(options) ⇒ Object
193
194
195
|
# File 'lib/hawk/crypto.rb', line 193
def hash(options)
Hash.new(options[:content_type], options[:payload], options[:credentials][:algorithm])
end
|
#mac(options) ⇒ Object
197
198
199
|
# File 'lib/hawk/crypto.rb', line 197
def mac(options)
Mac.new(options[:credentials][:key], options, options[:credentials][:algorithm])
end
|
#ts_mac(options) ⇒ Object
201
202
203
|
# File 'lib/hawk/crypto.rb', line 201
def ts_mac(options)
TSMac.new(options[:credentials][:key], options[:ts], options[:credentials][:algorithm])
end
|