Class: Signature5Verifier
- Inherits:
-
Object
- Object
- Signature5Verifier
- Defined in:
- lib/ruby-common/Signature5Verifier.rb
Overview
Entry point of AdScore signature v5 verification library. It expose verify method allowing to verify
AdScore signature against given set of ipAddress(es) for given zone.
V5 is in fact an encrypted payload containing various metadata about the traffic.
Its decryption does not rely on IP address nor User Agent string,
so it is immune for environment changes usually preventing V4 to be even decoded.
result is also included in the payload, but client doing the integration can make its own decision basing on the metadata accompanying.
Class Method Summary collapse
-
.verify(signature, user_agent, key, ip_addresses) ⇒ Object
Verifies the signature against the provided user agent, key, and IP addresses.
Class Method Details
.verify(signature, user_agent, key, ip_addresses) ⇒ Object
Verifies the signature against the provided user agent, key, and IP addresses.
28 29 30 |
# File 'lib/ruby-common/Signature5Verifier.rb', line 28 def self.verify(signature, user_agent, key, ip_addresses) Signature5VerifierService.verifySignature(signature, user_agent, key, ip_addresses) end |