public sealed class ContainerImageSignature : IMessage<ContainerImageSignature>, IEquatable<ContainerImageSignature>, IDeepCloneable<ContainerImageSignature>, IBufferMessage, IMessage
Reference documentation and code samples for the Confidential Computing v1 API class ContainerImageSignature.
ContainerImageSignature holds necessary metadata to verify a container image
signature.
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))))
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eContainerImageSignature\u003c/code\u003e class in the Google.Cloud.ConfidentialComputing.V1 API is designed to hold metadata for verifying container image signatures.\u003c/p\u003e\n"],["\u003cp\u003eVersion 1.8.0 is the latest available version of the \u003ccode\u003eContainerImageSignature\u003c/code\u003e class, with previous versions going back to 1.0.0 also being documented.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties like \u003ccode\u003ePayload\u003c/code\u003e, \u003ccode\u003ePublicKey\u003c/code\u003e, \u003ccode\u003eSigAlg\u003c/code\u003e, and \u003ccode\u003eSignature\u003c/code\u003e, which hold information about the signature, with \u003ccode\u003ePayload\u003c/code\u003e containing the image digest and \u003ccode\u003eSignature\u003c/code\u003e being a signature over the payload's SHA256 digest.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContainerImageSignature\u003c/code\u003e class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing it to work with various .NET and Google Cloud libraries.\u003c/p\u003e\n"],["\u003cp\u003eThe class has 2 constructors, one is empty, and the other requires another \u003ccode\u003eContainerImageSignature\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,["# Confidential Computing v1 API - Class ContainerImageSignature (1.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.8.0 (latest)](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/latest/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/1.7.0/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/1.6.0/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/1.5.0/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/1.4.0/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/1.3.0/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/1.2.0/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/1.1.0/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/1.0.0/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature) \n\n public sealed class ContainerImageSignature : IMessage\u003cContainerImageSignature\u003e, IEquatable\u003cContainerImageSignature\u003e, IDeepCloneable\u003cContainerImageSignature\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Confidential Computing v1 API class ContainerImageSignature.\n\nContainerImageSignature holds necessary metadata to verify a container image\nsignature. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ContainerImageSignature \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ContainerImageSignature](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/latest/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ContainerImageSignature](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/latest/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ContainerImageSignature](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/latest/Google.Cloud.ConfidentialComputing.V1.ContainerImageSignature), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ConfidentialComputing.V1](/dotnet/docs/reference/Google.Cloud.ConfidentialComputing.V1/latest/Google.Cloud.ConfidentialComputing.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ConfidentialComputing.V1.dll\n\nConstructors\n------------\n\n### ContainerImageSignature()\n\n public ContainerImageSignature()\n\n### ContainerImageSignature(ContainerImageSignature)\n\n public ContainerImageSignature(ContainerImageSignature other)\n\nProperties\n----------\n\n### Payload\n\n public ByteString Payload { get; set; }\n\nOptional. The binary signature payload following the SimpleSigning format\n\u003chttps://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md#simple-signing\u003e.\nThis payload includes the container image digest.\n\n### PublicKey\n\n public ByteString PublicKey { get; set; }\n\nOptional. Reserved for future use.\n\n### SigAlg\n\n public SigningAlgorithm SigAlg { get; set; }\n\nOptional. Reserved for future use.\n\n### Signature\n\n public ByteString Signature { get; set; }\n\nOptional. A signature over the payload.\nThe container image digest is incorporated into the signature as follows:\n\n1. Generate a SimpleSigning format payload that includes the container image digest.\n2. Generate a signature over SHA256 digest of the payload. The signature generation process can be represented as follows: `Sign(sha256(SimpleSigningPayload(sha256(Image Manifest))))`"]]