RFC 7515 Quiz

JWS protection, serialization, and validation boundaries

0 / 0

References

Q1: What does a valid JWS cryptographically protect?

Multiple Choice
**Explanation:** A: Only the JWS signing input is covered, not arbitrary enclosing data. B: The signature or MAC is computed over the protected-header and payload representation. C: Cryptographic integrity does not decide whether application claims are acceptable.

Q2: Where must a security-relevant JOSE header parameter be placed when its integrity matters?

Multiple Choice
**Explanation:** A: Protected-header bytes are included in the signing input. B: Unprotected header parameters are not integrity protected. C: An outer object is not covered unless the application explicitly includes it in the signed payload.

Q3: What is the role of the JWS "kid" header parameter?

Multiple Choice
**Explanation:** A: A key identifier does not establish ownership or trust. B: Algorithm policy and key identification are separate decisions. C: RFC 7515 defines kid as a hint and leaves its structure unspecified.

Q4: A JWS uses an algorithm that verifies mathematically but is disabled by local policy. Should it be accepted?

Multiple Choice
**Explanation:** A: RFC 7515 requires the algorithm to be acceptable to the application. B: A JWS is valid only after both cryptographic validation and application acceptance checks. C: A key hint cannot authorize a disallowed algorithm.

Q5: A protected header contains an extension listed in "crit" that the verifier does not understand. What should happen?

Multiple Choice
**Explanation:** A: Every parameter named by crit must be understood and processed. B: Ignoring an unknown critical parameter defeats the purpose of crit. C: A verifier cannot rewrite the sender's protected header without invalidating the signing input.

Q6: Which statement distinguishes Compact Serialization from JSON Serialization?

Multiple Choice
**Explanation:** A: Compact Serialization has no JWS Unprotected Header. B: Multiple signatures are provided by the general JSON serialization. C: These are capabilities of the JWS JSON serialization rather than the compact form.

Q7: A general JWS JSON object contains three signatures and the application requires two specific signers. What validation rule applies?

Multiple Choice
**Explanation:** A: RFC 7515 requires at least one but permits applications to require particular or multiple signatures. B: The application decides which signature values must validate and can require more than the base minimum. C: Array position does not define the application's signer policy.

Q8: A verifier fetches a JWK Set from a "jku" URL. Which check is still required?

Multiple Choice
**Explanation:** A: RFC 7515 requires integrity-protected retrieval and validated TLS server identity. B: Matching a hint does not establish a trusted key source. C: An attacker-controlled key source could provide a matching key and signature.

Q9: What does successful JWS validation not establish by itself for an Agent Card?

Multiple Choice
**Explanation:** A: This is the core cryptographic result of successful validation. B: Protected-header content participates in the signing input. C: Authority, issuer binding, audience, and freshness require application-profile rules.

Q10: How should an A2A profile use JWS safely?

Multiple Choice
**Explanation:** A: Independent inference produces incompatible and potentially unsafe acceptance decisions. B: JWS supplies the cryptographic container while the application profile defines acceptance semantics. C: JWS validity does not grant cross-resource authorization.