This quiz reviews what JWS validation proves, which bytes it covers, and which acceptance decisions remain with the application. Section numbers refer to RFC 7515.
Q1: Does the valid signature cover the routing decision?
Multiple Choice · L3
An A2A gateway receives an envelope containing a compact JWS and a separate target member. The signed payload names agent A, while the outer member names agent B. The JWS validates, and the gateway routes by the outer member.
**Explanation:**
A is correct. Sections 5.1 and 5.2 define the signing input from the encoded protected header and payload. An enclosing application member is not added merely by being adjacent to the JWS. If target controls routing, the application profile should place that decision value in protected content before signing and check it after validation.
B invents protection for bytes that were never part of the signing input. C records the received envelope but cannot retroactively change what the signer signed. The issue is the boundary of cryptographic coverage, not whether the outer object is valid JSON.
Q2: How should a verifier handle conflicting protected and unprotected parameters?
Multiple Choice · L3
A flattened JWS JSON object has alg: ES256 in its protected header and alg: HS256 in its unprotected header. A library offers to prefer the protected value and continue.
**Explanation:**
C is correct. Sections 5.2 step 4 and 7.2 require the parameter names in the protected and unprotected header objects to be disjoint. A duplicate alg is therefore a malformed JOSE Header for this signature; precedence is not a repair rule.
A would conceal a prohibited collision, even though protecting alg is a sound design. B is worse because the unprotected value can be altered without invalidating the signature. The verifier should fail this signature rather than select either occurrence.
Q3: May an unknown critical extension be ignored after the signature verifies?
Multiple Choice · L3
A protected header contains crit: ["session-bind"] and a session-bind value. The signature verifies cryptographically, but this verifier has no implementation of that extension.
**Explanation:**
B is correct. Section 4.1.11 says that an extension listed in crit must be understood and processed; otherwise the JWS is invalid. Integrity of unknown semantics is not enough.
A confuses protection from alteration with the ability to apply the sender's required processing. C changes the protected header and therefore changes the signing input; it cannot preserve the original validation result. The safe outcome mandated by the critical-extension mechanism is rejection.
Q4: Is mathematical verification enough when the profile disallows the algorithm?
Multiple Choice · L3
An Agent Card profile permits only EdDSA. A legacy card uses ES256 with a trusted key, and the cryptographic library reports a valid signature. The verifier supports both algorithms.
**Explanation:**
C is correct. Section 5.2 makes acceptable algorithms an application decision and says a successfully validated JWS using an unacceptable algorithm should be considered invalid. Section 10.6 also requires implementations to check that algorithm information in the signature corresponds to the alg header.
A confuses key trust with algorithm policy. B confuses implementation capability with authorization to use that capability in this profile. Because the stated profile accepts only EdDSA, ES256 fails the application's acceptance rule even though the mathematical check succeeds.
Q5: What follows from a successful TLS fetch of a header-selected JWK Set?
Multiple Choice · L3
A verifier follows a protected jku supplied by an untrusted sender. HTTPS and server-identity validation succeed, the returned set contains the named kid, and that key validates the JWS. The URL's host is not an issuer configured by the application.
**Explanation:**
B is correct. Section 4.1.2 requires integrity-protected retrieval and TLS server-identity validation for an HTTP jku fetch. Those checks authenticate the contacted service; they do not establish that the application authorizes that service to supply keys for the claimed signer. Section 10.3 separately requires the key-management technique to authenticate key origin.
A turns a transport requirement into an application trust grant. C overstates kid, which Section 4.1.4 defines only as a key-selection hint. Restricting acceptable key sources and deciding whether to dereference sender-controlled URLs are application security policies, not guarantees supplied by JWS validation.
Q6: Does one valid signature satisfy a two-signer acceptance policy?
Multiple Choice · L3
A general JWS JSON object carries signatures from an issuer, an auditor, and an unrelated service. The application requires both the issuer and auditor. Only the issuer and unrelated-service signatures validate.
**Explanation:**
A is correct. Section 5.2 requires validation processing for each signature and makes it an application decision which signatures must succeed. At least one valid signature is the RFC-level floor, not a ceiling on the application's policy.
B reverses that relationship. C counts successes without checking whether the required auditor signed. A verifier must return or retain which signatures succeeded so that the application can enforce the issuer-plus-auditor rule.
Q7: Can semantically equivalent JSON replace a detached JWS payload?
Multiple Choice · L3
A detached JWS was created over UTF-8 JSON bytes containing a particular member order and whitespace. The receiver parses a stored copy, emits semantically equivalent JSON with different bytes, and wants to insert that serialization before validation.
**Explanation:**
C is correct. Appendix F's detached-content method assumes that the recipient can reconstruct the exact payload used in the JWS. Sections 5.1 and 5.2 operate on the payload's encoded octets, not on semantic equality between parsed JSON objects.
A describes a canonical data-model signature that RFC 7515 does not provide. B may be useful as an application comparison, but it cannot make different bytes satisfy the original signature. A separate profile could prescribe canonicalization, but both signer and verifier would have to apply that rule to the signed representation.
Q8: Which conclusion correctly composes JWS validation with A2A authorization?
Multiple Choice · L4
A cached Agent Card JWS validly signs an agent identifier and endpoint. The verifier trusts the signing key and accepts the algorithm. The card has no signed audience, expiry, or unique identifier. A separate grant is valid for workflow X. An attacker replays the same card and request in workflow Y.
**Explanation:**
B is correct. The valid signature establishes integrity for the protected header and signed payload under the selected trusted key. It does not copy the separate grant's scope into the card or create audience, freshness, and replay semantics that were never signed.
A conflates independent evidence and acceptance checks. C invents mandatory JWS claims: RFC 7515 defines the signature format, not a universal Agent Card claim set. Section 10.10 explicitly treats replay protection as an application concern and gives an integrity-protected unique identifier plus prior-use checking as one possible design. An A2A profile must define the decision fields, their protected placement, and the checks that connect the card, grant, request, and workflow.