Class: A2A::AgentCardSignature

Inherits:
ProtocolStruct
  • Object
show all
Defined in:
lib/a2a/types/agent_card_signature.rb

Overview

AgentCardSignature represents a JWS signature of an AgentCard. This follows the JSON format of an RFC 7515 JSON Web Signature (JWS).

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#headerHash?

Returns The unprotected JWS header values.

Returns:

  • (Hash, nil)

    The unprotected JWS header values.



15
# File 'lib/a2a/types/agent_card_signature.rb', line 15

attribute? :header, Types::Hash.optional

#protectedString

Returns The protected JWS header for the signature. This is a Base64url-encoded JSON object, as per RFC 7515.

Returns:

  • (String)

    The protected JWS header for the signature. This is a Base64url-encoded JSON object, as per RFC 7515.



9
# File 'lib/a2a/types/agent_card_signature.rb', line 9

attribute :protected, Types::String

#signatureString

Returns The computed signature, Base64url-encoded.

Returns:

  • (String)

    The computed signature, Base64url-encoded.



12
# File 'lib/a2a/types/agent_card_signature.rb', line 12

attribute :signature, Types::String