public static final class BuildSignature.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder> implements BuildSignatureOrBuilder
Message encapsulating the signature of the verified build.Protobuf type
grafeas.v1beta1.build.BuildSignature| Modifier and Type | Method and Description |
|---|---|
BuildSignature.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BuildSignature |
build() |
BuildSignature |
buildPartial() |
BuildSignature.Builder |
clear() |
BuildSignature.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BuildSignature.Builder |
clearKeyId()
An ID for the key used to sign.
|
BuildSignature.Builder |
clearKeyType()
The type of the key, either stored in `public_key` or referenced in
`key_id`
|
BuildSignature.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BuildSignature.Builder |
clearPublicKey()
Public key of the builder which can be used to verify that the related
findings are valid and unchanged.
|
BuildSignature.Builder |
clearSignature()
Signature of the related `BuildProvenance`.
|
BuildSignature.Builder |
clone() |
BuildSignature |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKeyId()
An ID for the key used to sign.
|
com.google.protobuf.ByteString |
getKeyIdBytes()
An ID for the key used to sign.
|
BuildSignature.KeyType |
getKeyType()
The type of the key, either stored in `public_key` or referenced in
`key_id`
|
int |
getKeyTypeValue()
The type of the key, either stored in `public_key` or referenced in
`key_id`
|
String |
getPublicKey()
Public key of the builder which can be used to verify that the related
findings are valid and unchanged.
|
com.google.protobuf.ByteString |
getPublicKeyBytes()
Public key of the builder which can be used to verify that the related
findings are valid and unchanged.
|
com.google.protobuf.ByteString |
getSignature()
Signature of the related `BuildProvenance`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BuildSignature.Builder |
mergeFrom(BuildSignature other) |
BuildSignature.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BuildSignature.Builder |
mergeFrom(com.google.protobuf.Message other) |
BuildSignature.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BuildSignature.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BuildSignature.Builder |
setKeyId(String value)
An ID for the key used to sign.
|
BuildSignature.Builder |
setKeyIdBytes(com.google.protobuf.ByteString value)
An ID for the key used to sign.
|
BuildSignature.Builder |
setKeyType(BuildSignature.KeyType value)
The type of the key, either stored in `public_key` or referenced in
`key_id`
|
BuildSignature.Builder |
setKeyTypeValue(int value)
The type of the key, either stored in `public_key` or referenced in
`key_id`
|
BuildSignature.Builder |
setPublicKey(String value)
Public key of the builder which can be used to verify that the related
findings are valid and unchanged.
|
BuildSignature.Builder |
setPublicKeyBytes(com.google.protobuf.ByteString value)
Public key of the builder which can be used to verify that the related
findings are valid and unchanged.
|
BuildSignature.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BuildSignature.Builder |
setSignature(com.google.protobuf.ByteString value)
Signature of the related `BuildProvenance`.
|
BuildSignature.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public BuildSignature.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public BuildSignature getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BuildSignature build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BuildSignature buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BuildSignature.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public BuildSignature.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public BuildSignature.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public BuildSignature.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public BuildSignature.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public BuildSignature.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public BuildSignature.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BuildSignature.Builder>public BuildSignature.Builder mergeFrom(BuildSignature other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public BuildSignature.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BuildSignature.Builder>IOExceptionpublic String getPublicKey()
Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Container Builder based signatures, this is a PEM encoded public key. To verify the Cloud Container Builder signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
string public_key = 1;getPublicKey in interface BuildSignatureOrBuilderpublic com.google.protobuf.ByteString getPublicKeyBytes()
Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Container Builder based signatures, this is a PEM encoded public key. To verify the Cloud Container Builder signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
string public_key = 1;getPublicKeyBytes in interface BuildSignatureOrBuilderpublic BuildSignature.Builder setPublicKey(String value)
Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Container Builder based signatures, this is a PEM encoded public key. To verify the Cloud Container Builder signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
string public_key = 1;public BuildSignature.Builder clearPublicKey()
Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Container Builder based signatures, this is a PEM encoded public key. To verify the Cloud Container Builder signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
string public_key = 1;public BuildSignature.Builder setPublicKeyBytes(com.google.protobuf.ByteString value)
Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Container Builder based signatures, this is a PEM encoded public key. To verify the Cloud Container Builder signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
string public_key = 1;public com.google.protobuf.ByteString getSignature()
Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
bytes signature = 2;getSignature in interface BuildSignatureOrBuilderpublic BuildSignature.Builder setSignature(com.google.protobuf.ByteString value)
Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
bytes signature = 2;public BuildSignature.Builder clearSignature()
Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
bytes signature = 2;public String getKeyId()
An ID for the key used to sign. This could be either an Id for the key stored in `public_key` (such as the Id or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
string key_id = 3;getKeyId in interface BuildSignatureOrBuilderpublic com.google.protobuf.ByteString getKeyIdBytes()
An ID for the key used to sign. This could be either an Id for the key stored in `public_key` (such as the Id or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
string key_id = 3;getKeyIdBytes in interface BuildSignatureOrBuilderpublic BuildSignature.Builder setKeyId(String value)
An ID for the key used to sign. This could be either an Id for the key stored in `public_key` (such as the Id or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
string key_id = 3;public BuildSignature.Builder clearKeyId()
An ID for the key used to sign. This could be either an Id for the key stored in `public_key` (such as the Id or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
string key_id = 3;public BuildSignature.Builder setKeyIdBytes(com.google.protobuf.ByteString value)
An ID for the key used to sign. This could be either an Id for the key stored in `public_key` (such as the Id or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
string key_id = 3;public int getKeyTypeValue()
The type of the key, either stored in `public_key` or referenced in `key_id`
.grafeas.v1beta1.build.BuildSignature.KeyType key_type = 4;getKeyTypeValue in interface BuildSignatureOrBuilderpublic BuildSignature.Builder setKeyTypeValue(int value)
The type of the key, either stored in `public_key` or referenced in `key_id`
.grafeas.v1beta1.build.BuildSignature.KeyType key_type = 4;public BuildSignature.KeyType getKeyType()
The type of the key, either stored in `public_key` or referenced in `key_id`
.grafeas.v1beta1.build.BuildSignature.KeyType key_type = 4;getKeyType in interface BuildSignatureOrBuilderpublic BuildSignature.Builder setKeyType(BuildSignature.KeyType value)
The type of the key, either stored in `public_key` or referenced in `key_id`
.grafeas.v1beta1.build.BuildSignature.KeyType key_type = 4;public BuildSignature.Builder clearKeyType()
The type of the key, either stored in `public_key` or referenced in `key_id`
.grafeas.v1beta1.build.BuildSignature.KeyType key_type = 4;public final BuildSignature.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>public final BuildSignature.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BuildSignature.Builder>Copyright © 2019 Google LLC. All rights reserved.