Class: Google::Apis::ContaineranalysisV1beta1::Attestation
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::Attestation
- Defined in:
- generated/google/apis/containeranalysis_v1beta1/classes.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb
Overview
Occurrence that represents a single "attestation". The authenticity of an attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the authority to which this attestation is attached is primarily useful for look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for).
Instance Attribute Summary collapse
-
#generic_signed_attestation ⇒ Google::Apis::ContaineranalysisV1beta1::GenericSignedAttestation
An attestation wrapper that uses the Grafeas
Signature
message. -
#pgp_signed_attestation ⇒ Google::Apis::ContaineranalysisV1beta1::PgpSignedAttestation
An attestation wrapper with a PGP-compatible signature.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Attestation
constructor
A new instance of Attestation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Attestation
Returns a new instance of Attestation.
113 114 115 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 113 def initialize(**args) update!(**args) end |
Instance Attribute Details
#generic_signed_attestation ⇒ Google::Apis::ContaineranalysisV1beta1::GenericSignedAttestation
An attestation wrapper that uses the Grafeas Signature
message.
This attestation must define the serialized_payload
that the signatures
verify and any metadata necessary to interpret that plaintext. The
signatures should always be over the serialized_payload
bytestring.
Corresponds to the JSON property genericSignedAttestation
104 105 106 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 104 def generic_signed_attestation @generic_signed_attestation end |
#pgp_signed_attestation ⇒ Google::Apis::ContaineranalysisV1beta1::PgpSignedAttestation
An attestation wrapper with a PGP-compatible signature. This message only
supports ATTACHED
signatures, where the payload that is signed is included
alongside the signature itself in the same file.
Corresponds to the JSON property pgpSignedAttestation
111 112 113 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 111 def pgp_signed_attestation @pgp_signed_attestation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
118 119 120 121 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 118 def update!(**args) @generic_signed_attestation = args[:generic_signed_attestation] if args.key?(:generic_signed_attestation) @pgp_signed_attestation = args[:pgp_signed_attestation] if args.key?(:pgp_signed_attestation) end |