Class ContainerImageSignature (0.38.0)

publicfinalclass ContainerImageSignatureextendsGeneratedMessageV3implementsContainerImageSignatureOrBuilder

ContainerImageSignature holds necessary metadata to verify a container image signature.

Protobuf type google.cloud.confidentialcomputing.v1.ContainerImageSignature

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

PAYLOAD_FIELD_NUMBER

publicstaticfinalintPAYLOAD_FIELD_NUMBER
Field Value
Type Description
int

PUBLIC_KEY_FIELD_NUMBER

publicstaticfinalintPUBLIC_KEY_FIELD_NUMBER
Field Value
Type Description
int

SIGNATURE_FIELD_NUMBER

publicstaticfinalintSIGNATURE_FIELD_NUMBER
Field Value
Type Description
int

SIG_ALG_FIELD_NUMBER

publicstaticfinalintSIG_ALG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticContainerImageSignaturegetDefaultInstance()
Returns
Type Description
ContainerImageSignature

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticContainerImageSignature.BuildernewBuilder()
Returns
Type Description
ContainerImageSignature.Builder

newBuilder(ContainerImageSignature prototype)

publicstaticContainerImageSignature.BuildernewBuilder(ContainerImageSignatureprototype)
Parameter
Name Description
prototype ContainerImageSignature
Returns
Type Description
ContainerImageSignature.Builder

parseDelimitedFrom(InputStream input)

publicstaticContainerImageSignatureparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticContainerImageSignatureparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticContainerImageSignatureparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticContainerImageSignatureparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticContainerImageSignatureparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticContainerImageSignatureparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticContainerImageSignatureparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticContainerImageSignatureparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticContainerImageSignatureparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticContainerImageSignatureparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticContainerImageSignatureparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticContainerImageSignatureparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerImageSignature
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<ContainerImageSignature>parser()
Returns
Type Description
Parser<ContainerImageSignature>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicContainerImageSignaturegetDefaultInstanceForType()
Returns
Type Description
ContainerImageSignature

getParserForType()

publicParser<ContainerImageSignature>getParserForType()
Returns
Type Description
Parser<ContainerImageSignature>
Overrides

getPayload()

publicByteStringgetPayload()

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.

bytes payload = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The payload.

getPublicKey()

publicByteStringgetPublicKey()

Optional. Reserved for future use.

bytes public_key = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The publicKey.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSigAlg()

publicSigningAlgorithmgetSigAlg()

Optional. Reserved for future use.

.google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SigningAlgorithm

The sigAlg.

getSigAlgValue()

publicintgetSigAlgValue()

Optional. Reserved for future use.

.google.cloud.confidentialcomputing.v1.SigningAlgorithm sig_alg = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for sigAlg.

getSignature()

publicByteStringgetSignature()

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))))

bytes signature = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The signature.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicContainerImageSignature.BuildernewBuilderForType()
Returns
Type Description
ContainerImageSignature.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedContainerImageSignature.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ContainerImageSignature.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicContainerImageSignature.BuildertoBuilder()
Returns
Type Description
ContainerImageSignature.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.