Class: Signature4Verifier
- Inherits:
-
Object
- Object
- Signature4Verifier
- Defined in:
- lib/ruby-common/Signature4Verifier.rb
Overview
Entry point of AdScore signature v4 verification library. It expose verify method allowing to verify AdScore signature against given set of ipAddress(es) for given zone.
Constant Summary collapse
- DEFAULT_EXPIRY_TIME_SEC =
60
Class Method Summary collapse
-
.verify(signature, user_agent, key, ip_addresses, expiry: DEFAULT_EXPIRY_TIME_SEC, is_key_base64_encoded: false) ⇒ Signature4VerificationResult
Default request and signature expiration is set to 60s.
Class Method Details
.verify(signature, user_agent, key, ip_addresses, expiry: DEFAULT_EXPIRY_TIME_SEC, is_key_base64_encoded: false) ⇒ Signature4VerificationResult
Default request and signature expiration is set to 60s
25 26 27 |
# File 'lib/ruby-common/Signature4Verifier.rb', line 25 def self.verify(signature, user_agent, key, ip_addresses, expiry: DEFAULT_EXPIRY_TIME_SEC, is_key_base64_encoded: false) Signature4VerifierService.verifySignature(signature, user_agent, key, ip_addresses, expiry, is_key_base64_encoded) end |