public static final class PgpSignedAttestation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PgpSignedAttestation.Builder> implements PgpSignedAttestationOrBuilder
An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.Protobuf type
grafeas.v1beta1.attestation.PgpSignedAttestation| Modifier and Type | Method and Description |
|---|---|
PgpSignedAttestation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PgpSignedAttestation |
build() |
PgpSignedAttestation |
buildPartial() |
PgpSignedAttestation.Builder |
clear() |
PgpSignedAttestation.Builder |
clearContentType()
Type (for example schema) of the attestation payload that was signed.
|
PgpSignedAttestation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PgpSignedAttestation.Builder |
clearKeyId() |
PgpSignedAttestation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PgpSignedAttestation.Builder |
clearPgpKeyId()
The cryptographic fingerprint of the key used to generate the signature,
as output by, e.g.
|
PgpSignedAttestation.Builder |
clearSignature()
The raw content of the signature, as output by GNU Privacy Guard (GPG) or
equivalent.
|
PgpSignedAttestation.Builder |
clone() |
PgpSignedAttestation.ContentType |
getContentType()
Type (for example schema) of the attestation payload that was signed.
|
int |
getContentTypeValue()
Type (for example schema) of the attestation payload that was signed.
|
PgpSignedAttestation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
PgpSignedAttestation.KeyIdCase |
getKeyIdCase() |
String |
getPgpKeyId()
The cryptographic fingerprint of the key used to generate the signature,
as output by, e.g.
|
com.google.protobuf.ByteString |
getPgpKeyIdBytes()
The cryptographic fingerprint of the key used to generate the signature,
as output by, e.g.
|
String |
getSignature()
The raw content of the signature, as output by GNU Privacy Guard (GPG) or
equivalent.
|
com.google.protobuf.ByteString |
getSignatureBytes()
The raw content of the signature, as output by GNU Privacy Guard (GPG) or
equivalent.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PgpSignedAttestation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PgpSignedAttestation.Builder |
mergeFrom(com.google.protobuf.Message other) |
PgpSignedAttestation.Builder |
mergeFrom(PgpSignedAttestation other) |
PgpSignedAttestation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PgpSignedAttestation.Builder |
setContentType(PgpSignedAttestation.ContentType value)
Type (for example schema) of the attestation payload that was signed.
|
PgpSignedAttestation.Builder |
setContentTypeValue(int value)
Type (for example schema) of the attestation payload that was signed.
|
PgpSignedAttestation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PgpSignedAttestation.Builder |
setPgpKeyId(String value)
The cryptographic fingerprint of the key used to generate the signature,
as output by, e.g.
|
PgpSignedAttestation.Builder |
setPgpKeyIdBytes(com.google.protobuf.ByteString value)
The cryptographic fingerprint of the key used to generate the signature,
as output by, e.g.
|
PgpSignedAttestation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PgpSignedAttestation.Builder |
setSignature(String value)
The raw content of the signature, as output by GNU Privacy Guard (GPG) or
equivalent.
|
PgpSignedAttestation.Builder |
setSignatureBytes(com.google.protobuf.ByteString value)
The raw content of the signature, as output by GNU Privacy Guard (GPG) or
equivalent.
|
PgpSignedAttestation.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<PgpSignedAttestation.Builder>public PgpSignedAttestation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PgpSignedAttestation.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<PgpSignedAttestation.Builder>public PgpSignedAttestation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PgpSignedAttestation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PgpSignedAttestation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PgpSignedAttestation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PgpSignedAttestation.Builder>public PgpSignedAttestation.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<PgpSignedAttestation.Builder>public PgpSignedAttestation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PgpSignedAttestation.Builder>public PgpSignedAttestation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PgpSignedAttestation.Builder>public PgpSignedAttestation.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<PgpSignedAttestation.Builder>public PgpSignedAttestation.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<PgpSignedAttestation.Builder>public PgpSignedAttestation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PgpSignedAttestation.Builder>public PgpSignedAttestation.Builder mergeFrom(PgpSignedAttestation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PgpSignedAttestation.Builder>public PgpSignedAttestation.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<PgpSignedAttestation.Builder>IOExceptionpublic PgpSignedAttestation.KeyIdCase getKeyIdCase()
getKeyIdCase in interface PgpSignedAttestationOrBuilderpublic PgpSignedAttestation.Builder clearKeyId()
public String getSignature()
The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
string signature = 1;getSignature in interface PgpSignedAttestationOrBuilderpublic com.google.protobuf.ByteString getSignatureBytes()
The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
string signature = 1;getSignatureBytes in interface PgpSignedAttestationOrBuilderpublic PgpSignedAttestation.Builder setSignature(String value)
The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
string signature = 1;public PgpSignedAttestation.Builder clearSignature()
The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
string signature = 1;public PgpSignedAttestation.Builder setSignatureBytes(com.google.protobuf.ByteString value)
The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
string signature = 1;public int getContentTypeValue()
Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
.grafeas.v1beta1.attestation.PgpSignedAttestation.ContentType content_type = 3;getContentTypeValue in interface PgpSignedAttestationOrBuilderpublic PgpSignedAttestation.Builder setContentTypeValue(int value)
Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
.grafeas.v1beta1.attestation.PgpSignedAttestation.ContentType content_type = 3;public PgpSignedAttestation.ContentType getContentType()
Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
.grafeas.v1beta1.attestation.PgpSignedAttestation.ContentType content_type = 3;getContentType in interface PgpSignedAttestationOrBuilderpublic PgpSignedAttestation.Builder setContentType(PgpSignedAttestation.ContentType value)
Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
.grafeas.v1beta1.attestation.PgpSignedAttestation.ContentType content_type = 3;public PgpSignedAttestation.Builder clearContentType()
Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
.grafeas.v1beta1.attestation.PgpSignedAttestation.ContentType content_type = 3;public String getPgpKeyId()
The cryptographic fingerprint of the key used to generate the signature,
as output by, e.g. `gpg --list-keys`. This should be the version 4, full
160-bit fingerprint, expressed as a 40 character hexidecimal string. See
https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Implementations may choose to acknowledge "LONG", "SHORT", or other
abbreviated key IDs, but only the full fingerprint is guaranteed to work.
In gpg, the full fingerprint can be retrieved from the `fpr` field
returned when calling --list-keys with --with-colons. For example:
```
gpg --with-colons --with-fingerprint --force-v4-certs \
--list-keys attester@example.com
tru::1:1513631572:0:3:1:5
pub:...<SNIP>...
fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
```
Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
string pgp_key_id = 2;getPgpKeyId in interface PgpSignedAttestationOrBuilderpublic com.google.protobuf.ByteString getPgpKeyIdBytes()
The cryptographic fingerprint of the key used to generate the signature,
as output by, e.g. `gpg --list-keys`. This should be the version 4, full
160-bit fingerprint, expressed as a 40 character hexidecimal string. See
https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Implementations may choose to acknowledge "LONG", "SHORT", or other
abbreviated key IDs, but only the full fingerprint is guaranteed to work.
In gpg, the full fingerprint can be retrieved from the `fpr` field
returned when calling --list-keys with --with-colons. For example:
```
gpg --with-colons --with-fingerprint --force-v4-certs \
--list-keys attester@example.com
tru::1:1513631572:0:3:1:5
pub:...<SNIP>...
fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
```
Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
string pgp_key_id = 2;getPgpKeyIdBytes in interface PgpSignedAttestationOrBuilderpublic PgpSignedAttestation.Builder setPgpKeyId(String value)
The cryptographic fingerprint of the key used to generate the signature,
as output by, e.g. `gpg --list-keys`. This should be the version 4, full
160-bit fingerprint, expressed as a 40 character hexidecimal string. See
https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Implementations may choose to acknowledge "LONG", "SHORT", or other
abbreviated key IDs, but only the full fingerprint is guaranteed to work.
In gpg, the full fingerprint can be retrieved from the `fpr` field
returned when calling --list-keys with --with-colons. For example:
```
gpg --with-colons --with-fingerprint --force-v4-certs \
--list-keys attester@example.com
tru::1:1513631572:0:3:1:5
pub:...<SNIP>...
fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
```
Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
string pgp_key_id = 2;public PgpSignedAttestation.Builder clearPgpKeyId()
The cryptographic fingerprint of the key used to generate the signature,
as output by, e.g. `gpg --list-keys`. This should be the version 4, full
160-bit fingerprint, expressed as a 40 character hexidecimal string. See
https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Implementations may choose to acknowledge "LONG", "SHORT", or other
abbreviated key IDs, but only the full fingerprint is guaranteed to work.
In gpg, the full fingerprint can be retrieved from the `fpr` field
returned when calling --list-keys with --with-colons. For example:
```
gpg --with-colons --with-fingerprint --force-v4-certs \
--list-keys attester@example.com
tru::1:1513631572:0:3:1:5
pub:...<SNIP>...
fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
```
Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
string pgp_key_id = 2;public PgpSignedAttestation.Builder setPgpKeyIdBytes(com.google.protobuf.ByteString value)
The cryptographic fingerprint of the key used to generate the signature,
as output by, e.g. `gpg --list-keys`. This should be the version 4, full
160-bit fingerprint, expressed as a 40 character hexidecimal string. See
https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Implementations may choose to acknowledge "LONG", "SHORT", or other
abbreviated key IDs, but only the full fingerprint is guaranteed to work.
In gpg, the full fingerprint can be retrieved from the `fpr` field
returned when calling --list-keys with --with-colons. For example:
```
gpg --with-colons --with-fingerprint --force-v4-certs \
--list-keys attester@example.com
tru::1:1513631572:0:3:1:5
pub:...<SNIP>...
fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
```
Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
string pgp_key_id = 2;public final PgpSignedAttestation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PgpSignedAttestation.Builder>public final PgpSignedAttestation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PgpSignedAttestation.Builder>Copyright © 2019 Google LLC. All rights reserved.