class HttpSignatures::VerificationAlgorithm
Public Class Methods
create(algorithm)
click to toggle source
# File lib/http_signatures/verification_algorithm.rb, line 3 def self.create(algorithm) case algorithm when HttpSignatures::Algorithm::Hmac then Hmac.new(algorithm) when HttpSignatures::Algorithm::Rsa then Rsa.new(algorithm) else raise UnknownAlgorithm.new(algorithm) end end