Class: Signature5VerifierService

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-common/v5/Signature5VerifierService.rb

Constant Summary collapse

VERSION =
5
HEADER_LENGTH =
11

Class Method Summary collapse

Class Method Details

.verifySignature(signature, user_agent, key, ip_addresses) ⇒ Object



24
25
26
27
28
# File 'lib/ruby-common/v5/Signature5VerifierService.rb', line 24

def self.verifySignature(signature, user_agent, key, ip_addresses)
  parsed = parse(signature, key)
  verify(parsed, ip_addresses, user_agent)
  return Signature5VerificationResult.new(parsed)
end