Google Cloud Confidential Computing V1 Client - Class ContainerImageSignature (0.3.0)

Reference documentation and code samples for the Google Cloud Confidential Computing V1 Client class ContainerImageSignature.

ContainerImageSignature holds necessary metadata to verify a container image signature.

Generated from protobuf message google.cloud.confidentialcomputing.v1.ContainerImageSignature

Namespace

Google \ Cloud \ ConfidentialComputing \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ payload string

Required. The binary signature payload following the SimpleSigning format https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing. This payload includes the container image digest.

↳ signature string

Required. A signature over the payload. The container image digest is incorporated into the signature as follows: 1. Generate a SimpleSigning format payload that includes the container image digest. 2. Generate a signature over SHA256 digest of the payload. The signature generation process can be represented as follows: Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))

↳ public_key string

Required. An associated public key used to verify the signature.

↳ sig_alg int

Required. The algorithm used to produce the container image signature.

getPayload

Required. The binary signature payload following the SimpleSigning format https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.

This payload includes the container image digest.

Returns
TypeDescription
string

setPayload

Required. The binary signature payload following the SimpleSigning format https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing.

This payload includes the container image digest.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSignature

Required. A signature over the payload.

The container image digest is incorporated into the signature as follows:

  1. Generate a SimpleSigning format payload that includes the container image digest.
  2. Generate a signature over SHA256 digest of the payload. The signature generation process can be represented as follows: Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))
Returns
TypeDescription
string

setSignature

Required. A signature over the payload.

The container image digest is incorporated into the signature as follows:

  1. Generate a SimpleSigning format payload that includes the container image digest.
  2. Generate a signature over SHA256 digest of the payload. The signature generation process can be represented as follows: Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPublicKey

Required. An associated public key used to verify the signature.

Returns
TypeDescription
string

setPublicKey

Required. An associated public key used to verify the signature.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSigAlg

Required. The algorithm used to produce the container image signature.

Returns
TypeDescription
int

setSigAlg

Required. The algorithm used to produce the container image signature.

Parameter
NameDescription
var int
Returns
TypeDescription
$this