Class: Google::Apis::CesV1::LfA2aV1AgentCardSignature

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LfA2aV1AgentCardSignature

Returns a new instance of LfA2aV1AgentCardSignature.



4544
4545
4546
# File 'lib/google/apis/ces_v1/classes.rb', line 4544

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#headerHash<String,Object>

The unprotected JWS header values. Corresponds to the JSON property header

Returns:

  • (Hash<String,Object>)


4531
4532
4533
# File 'lib/google/apis/ces_v1/classes.rb', line 4531

def header
  @header
end

#protectedString

Required. Required. The protected JWS header for the signature. This is always a base64url-encoded JSON object. Corresponds to the JSON property protected

Returns:

  • (String)


4537
4538
4539
# File 'lib/google/apis/ces_v1/classes.rb', line 4537

def protected
  @protected
end

#signatureString

Required. The computed signature, base64url-encoded. Corresponds to the JSON property signature

Returns:

  • (String)


4542
4543
4544
# File 'lib/google/apis/ces_v1/classes.rb', line 4542

def signature
  @signature
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4549
4550
4551
4552
4553
# File 'lib/google/apis/ces_v1/classes.rb', line 4549

def update!(**args)
  @header = args[:header] if args.key?(:header)
  @protected = args[:protected] if args.key?(:protected)
  @signature = args[:signature] if args.key?(:signature)
end