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
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getPublicKey

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

Returns
Type Description
string

setPublicKey

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

Parameter
Name Description
var string
Returns
Type Description
$this

getSigAlg

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

Returns
Type Description
int

setSigAlg

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

Parameter
Name Description
var int
Returns
Type Description
$this