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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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: |
↳ 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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSignature
Optional. A signature over the payload.
The container image digest is incorporated into the signature as follows:
- Generate a SimpleSigning format payload that includes the container image digest.
- 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
Optional. A signature over the payload.
The container image digest is incorporated into the signature as follows:
- Generate a SimpleSigning format payload that includes the container image digest.
- 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
Optional. Reserved for future use.
Returns | |
---|---|
Type | Description |
string |
setPublicKey
Optional. Reserved for future use.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSigAlg
Optional. Reserved for future use.
Returns | |
---|---|
Type | Description |
int |
setSigAlg
Optional. Reserved for future use.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |