Class ContainerImageSignature (0.13.0)

public final class ContainerImageSignature extends GeneratedMessageV3 implements ContainerImageSignatureOrBuilder

ContainerImageSignature holds necessary metadata to verify a container image signature.

Protobuf type google.cloud.confidentialcomputing.v1.ContainerImageSignature

Static Fields

PAYLOAD_FIELD_NUMBER

public static final int PAYLOAD_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLIC_KEY_FIELD_NUMBER

public static final int PUBLIC_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

SIGNATURE_FIELD_NUMBER

public static final int SIGNATURE_FIELD_NUMBER
Field Value
TypeDescription
int

SIG_ALG_FIELD_NUMBER

public static final int SIG_ALG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ContainerImageSignature getDefaultInstance()
Returns
TypeDescription
ContainerImageSignature

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ContainerImageSignature.Builder newBuilder()
Returns
TypeDescription
ContainerImageSignature.Builder

newBuilder(ContainerImageSignature prototype)

public static ContainerImageSignature.Builder newBuilder(ContainerImageSignature prototype)
Parameter
NameDescription
prototypeContainerImageSignature
Returns
TypeDescription
ContainerImageSignature.Builder

parseDelimitedFrom(InputStream input)

public static ContainerImageSignature parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContainerImageSignature parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ContainerImageSignature parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ContainerImageSignature parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ContainerImageSignature parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ContainerImageSignature parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ContainerImageSignature parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ContainerImageSignature parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ContainerImageSignature parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContainerImageSignature parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ContainerImageSignature parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ContainerImageSignature parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerImageSignature
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ContainerImageSignature> parser()
Returns
TypeDescription
Parser<ContainerImageSignature>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ContainerImageSignature getDefaultInstanceForType()
Returns
TypeDescription
ContainerImageSignature

getParserForType()

public Parser<ContainerImageSignature> getParserForType()
Returns
TypeDescription
Parser<ContainerImageSignature>
Overrides

getPayload()

public ByteString 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.

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

Returns
TypeDescription
ByteString

The payload.

getPublicKey()

public ByteString getPublicKey()

Optional. Reserved for future use.

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

Returns
TypeDescription
ByteString

The publicKey.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSigAlg()

public SigningAlgorithm getSigAlg()

Optional. Reserved for future use.

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

Returns
TypeDescription
SigningAlgorithm

The sigAlg.

getSigAlgValue()

public int getSigAlgValue()

Optional. Reserved for future use.

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

Returns
TypeDescription
int

The enum numeric value on the wire for sigAlg.

getSignature()

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

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

Returns
TypeDescription
ByteString

The signature.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ContainerImageSignature.Builder newBuilderForType()
Returns
TypeDescription
ContainerImageSignature.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ContainerImageSignature.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ContainerImageSignature.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ContainerImageSignature.Builder toBuilder()
Returns
TypeDescription
ContainerImageSignature.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException