Class: A2A::AgentCard::Verifier
- Inherits:
-
Object
- Object
- A2A::AgentCard::Verifier
- Defined in:
- lib/a2a/agent_card/verifier.rb
Overview
§8.4.3 — Verifies AgentCard signatures. Signing is optional; unsigned cards are considered valid. Full JWS verification (RFC 7515 + RFC 8785 canonicalisation) is not yet implemented. See §8.4 of the A2A spec for the required algorithm.
Class Method Summary collapse
Class Method Details
.verify!(card) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/a2a/agent_card/verifier.rb', line 10 def self.verify!(card) return true if card.signatures.nil? || card.signatures.empty? raise NotImplementedError, "AgentCard signature verification is not yet implemented (§8.4). " \ "The card carries #{card.signatures.length} signature(s) but they cannot be verified." end |