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
207
208
209
210
211
212
213
214
|
# File 'lib/hawk/crypto.rb', line 207
def bewit(options)
Bewit.new(
options[:credentials][:id],
options[:credentials][:key],
options,
options[:credentials][:algorithm]
)
end
|
#hash(options) ⇒ Object
195
196
197
|
# File 'lib/hawk/crypto.rb', line 195
def hash(options)
Hash.new(options[:content_type], options[:payload], options[:credentials][:algorithm])
end
|
#mac(options) ⇒ Object
199
200
201
|
# File 'lib/hawk/crypto.rb', line 199
def mac(options)
Mac.new(options[:credentials][:key], options, options[:credentials][:algorithm])
end
|
#ts_mac(options) ⇒ Object
203
204
205
|
# File 'lib/hawk/crypto.rb', line 203
def ts_mac(options)
TSMac.new(options[:credentials][:key], options[:ts], options[:credentials][:algorithm])
end
|