Class: Google::Apis::ContaineranalysisV1beta1::SigningKey
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::SigningKey
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1beta1/classes.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb,
lib/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
-
#key_id ⇒ String
key_id is an identifier for the signing key.
-
#key_scheme ⇒ String
This field contains the corresponding signature scheme.
-
#key_type ⇒ String
This field identifies the specific signing method.
-
#public_key_value ⇒ String
This field contains the actual public key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SigningKey
constructor
A new instance of SigningKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SigningKey
Returns a new instance of SigningKey.
6352 6353 6354 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6352 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key_id ⇒ String
key_id is an identifier for the signing key.
Corresponds to the JSON property keyId
6333 6334 6335 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6333 def key_id @key_id end |
#key_scheme ⇒ String
This field contains the corresponding signature scheme. Eg: "rsassa-pss-sha256"
.
Corresponds to the JSON property keyScheme
6339 6340 6341 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6339 def key_scheme @key_scheme end |
#key_type ⇒ String
This field identifies the specific signing method. Eg: "rsa", "ed25519", and "
ecdsa".
Corresponds to the JSON property keyType
6345 6346 6347 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6345 def key_type @key_type end |
#public_key_value ⇒ String
This field contains the actual public key.
Corresponds to the JSON property publicKeyValue
6350 6351 6352 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6350 def public_key_value @public_key_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6357 6358 6359 6360 6361 6362 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 6357 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 |