Interface ContainerImageSignatureOrBuilder (0.31.0)

public interface ContainerImageSignatureOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPayload()

public abstract 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
Type Description
ByteString

The payload.

getPublicKey()

public abstract ByteString getPublicKey()

Optional. Reserved for future use.

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

Returns
Type Description
ByteString

The publicKey.

getSigAlg()

public abstract SigningAlgorithm getSigAlg()

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

public abstract int getSigAlgValue()

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

public abstract 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
Type Description
ByteString

The signature.