Google Cloud Confidential Computing V1 Client - Class ContainerImageSignature (0.7.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

Optional. 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

Optional. 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

Optional. Reserved for future use.

↳ sig_alg int

Optional. Reserved for future use.

getPayload

Optional. 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

Optional. 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

Optional. 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

Optional. 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

Optional. Reserved for future use.

Returns
TypeDescription
string

setPublicKey

Optional. Reserved for future use.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSigAlg

Optional. Reserved for future use.

Returns
TypeDescription
int

setSigAlg

Optional. Reserved for future use.

Parameter
NameDescription
var int
Returns
TypeDescription
$this