Class: CoreLibrary::SignatureVerifier
- Inherits:
-
Object
- Object
- CoreLibrary::SignatureVerifier
- Defined in:
- lib/apimatic-core-interfaces/security/signature_verifier.rb
Overview
An interface for signature verification. This class should not be instantiated but used as a base class for implementing signature verification logic.
Instance Method Summary collapse
-
#verify(request) ⇒ CoreLibrary::SignatureVerificationResult
Verifies the signature of the given HTTP request.
Instance Method Details
#verify(request) ⇒ CoreLibrary::SignatureVerificationResult
Verifies the signature of the given HTTP request.
Notes: Implementations should not raise exceptions for runtime verification failures. Instead, return ‘SignatureVerificationResult.failed(error)`. Raising should be reserved for programmer errors (e.g., misconfiguration).
15 16 17 |
# File 'lib/apimatic-core-interfaces/security/signature_verifier.rb', line 15 def verify(request) raise NotImplementedError, 'This method must be implemented in a subclass.' end |