Class: Google::Apis::ContaineranalysisV1beta1::SigningKey

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

Overview

This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: "key_id": "776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...", "key_type": "rsa", "public_key_value": "-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...", "key_scheme": "rsassa-pss-sha256" The format for in-toto's key definition can be found in section 4.2 of the in-toto specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SigningKey

Returns a new instance of SigningKey.



2927
2928
2929
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2927

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

Instance Attribute Details

#key_idString

key_id is an identifier for the signing key. Corresponds to the JSON property keyId

Returns:

  • (String)


2908
2909
2910
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2908

def key_id
  @key_id
end

#key_schemeString

This field contains the corresponding signature scheme. Eg: "rsassa-pss-sha256". Corresponds to the JSON property keyScheme

Returns:

  • (String)


2914
2915
2916
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2914

def key_scheme
  @key_scheme
end

#key_typeString

This field identifies the specific signing method. Eg: "rsa", "ed25519", and "ecdsa". Corresponds to the JSON property keyType

Returns:

  • (String)


2920
2921
2922
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2920

def key_type
  @key_type
end

#public_key_valueString

This field contains the actual public key. Corresponds to the JSON property publicKeyValue

Returns:

  • (String)


2925
2926
2927
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2925

def public_key_value
  @public_key_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2932
2933
2934
2935
2936
2937
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2932

def update!(**args)
  @key_id = args[:key_id] if args.key?(:key_id)
  @key_scheme = args[:key_scheme] if args.key?(:key_scheme)
  @key_type = args[:key_type] if args.key?(:key_type)
  @public_key_value = args[:public_key_value] if args.key?(:public_key_value)
end