public final class BuildSignature extends com.google.protobuf.GeneratedMessageV3 implements BuildSignatureOrBuilder
Message encapsulating the signature of the verified build.Protobuf type
grafeas.v1beta1.build.BuildSignature| Modifier and Type | Class and Description |
|---|---|
static class |
BuildSignature.Builder
Message encapsulating the signature of the verified build.
|
static class |
BuildSignature.KeyType
Public key formats
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
KEY_ID_FIELD_NUMBER |
static int |
KEY_TYPE_FIELD_NUMBER |
static int |
PUBLIC_KEY_FIELD_NUMBER |
static int |
SIGNATURE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static BuildSignature |
getDefaultInstance() |
BuildSignature |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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`
|
com.google.protobuf.Parser<BuildSignature> |
getParserForType() |
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.
|
int |
getSerializedSize() |
com.google.protobuf.ByteString |
getSignature()
Signature of the related `BuildProvenance`.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static BuildSignature.Builder |
newBuilder() |
static BuildSignature.Builder |
newBuilder(BuildSignature prototype) |
BuildSignature.Builder |
newBuilderForType() |
protected BuildSignature.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static BuildSignature |
parseDelimitedFrom(InputStream input) |
static BuildSignature |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BuildSignature |
parseFrom(byte[] data) |
static BuildSignature |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BuildSignature |
parseFrom(ByteBuffer data) |
static BuildSignature |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BuildSignature |
parseFrom(com.google.protobuf.ByteString data) |
static BuildSignature |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BuildSignature |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BuildSignature |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BuildSignature |
parseFrom(InputStream input) |
static BuildSignature |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BuildSignature> |
parser() |
BuildSignature.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PUBLIC_KEY_FIELD_NUMBER
public static final int SIGNATURE_FIELD_NUMBER
public static final int KEY_ID_FIELD_NUMBER
public static final int KEY_TYPE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 com.google.protobuf.ByteString getSignature()
Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
bytes signature = 2;getSignature in interface BuildSignatureOrBuilderpublic 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 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.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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static BuildSignature parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildSignature parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildSignature parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildSignature parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildSignature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildSignature parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildSignature parseFrom(InputStream input) throws IOException
IOExceptionpublic static BuildSignature parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BuildSignature parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static BuildSignature parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BuildSignature parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static BuildSignature parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic BuildSignature.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static BuildSignature.Builder newBuilder()
public static BuildSignature.Builder newBuilder(BuildSignature prototype)
public BuildSignature.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected BuildSignature.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static BuildSignature getDefaultInstance()
public static com.google.protobuf.Parser<BuildSignature> parser()
public com.google.protobuf.Parser<BuildSignature> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public BuildSignature getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.