public static final class AttestationOccurrence.Builder extends GeneratedMessageV3.Builder<AttestationOccurrence.Builder> implements AttestationOccurrenceOrBuilder
Occurrence that represents a single "attestation". The authenticity of an
attestation can be verified using the attached signature. If the verifier
trusts the public key of the signer, then verifying the signature is
sufficient to establish trust. In this circumstance, the authority to which
this attestation is attached is primarily useful for lookup (how to find
this attestation if you already know the authority and artifact to be
verified) and intent (for which authority this attestation was intended to
sign.
Protobuf type grafeas.v1.AttestationOccurrence
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllJwts(Iterable<? extends Jwt> values)
public AttestationOccurrence.Builder addAllJwts(Iterable<? extends Jwt> values)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Parameter |
Name |
Description |
values |
Iterable<? extends io.grafeas.v1.Jwt>
|
addAllSignatures(Iterable<? extends Signature> values)
public AttestationOccurrence.Builder addAllSignatures(Iterable<? extends Signature> values)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends io.grafeas.v1.Signature>
|
addJwts(int index, Jwt value)
public AttestationOccurrence.Builder addJwts(int index, Jwt value)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Parameters |
Name |
Description |
index |
int
|
value |
Jwt
|
addJwts(int index, Jwt.Builder builderForValue)
public AttestationOccurrence.Builder addJwts(int index, Jwt.Builder builderForValue)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
addJwts(Jwt value)
public AttestationOccurrence.Builder addJwts(Jwt value)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Parameter |
Name |
Description |
value |
Jwt
|
addJwts(Jwt.Builder builderForValue)
public AttestationOccurrence.Builder addJwts(Jwt.Builder builderForValue)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
addJwtsBuilder()
public Jwt.Builder addJwtsBuilder()
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
addJwtsBuilder(int index)
public Jwt.Builder addJwtsBuilder(int index)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttestationOccurrence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSignatures(int index, Signature value)
public AttestationOccurrence.Builder addSignatures(int index, Signature value)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
addSignatures(int index, Signature.Builder builderForValue)
public AttestationOccurrence.Builder addSignatures(int index, Signature.Builder builderForValue)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
addSignatures(Signature value)
public AttestationOccurrence.Builder addSignatures(Signature value)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
addSignatures(Signature.Builder builderForValue)
public AttestationOccurrence.Builder addSignatures(Signature.Builder builderForValue)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
addSignaturesBuilder()
public Signature.Builder addSignaturesBuilder()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
addSignaturesBuilder(int index)
public Signature.Builder addSignaturesBuilder(int index)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter |
Name |
Description |
index |
int
|
build()
public AttestationOccurrence build()
buildPartial()
public AttestationOccurrence buildPartial()
clear()
public AttestationOccurrence.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AttestationOccurrence.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearJwts()
public AttestationOccurrence.Builder clearJwts()
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public AttestationOccurrence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSerializedPayload()
public AttestationOccurrence.Builder clearSerializedPayload()
Required. The serialized payload that is verified by one or more
signatures
.
bytes serialized_payload = 1;
clearSignatures()
public AttestationOccurrence.Builder clearSignatures()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
clone()
public AttestationOccurrence.Builder clone()
Overrides
getDefaultInstanceForType()
public AttestationOccurrence getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getJwts(int index)
public Jwt getJwts(int index)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
Jwt |
|
getJwtsBuilder(int index)
public Jwt.Builder getJwtsBuilder(int index)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Parameter |
Name |
Description |
index |
int
|
getJwtsBuilderList()
public List<Jwt.Builder> getJwtsBuilderList()
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
getJwtsCount()
public int getJwtsCount()
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Returns |
Type |
Description |
int |
|
getJwtsList()
public List<Jwt> getJwtsList()
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
getJwtsOrBuilder(int index)
public JwtOrBuilder getJwtsOrBuilder(int index)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Parameter |
Name |
Description |
index |
int
|
getJwtsOrBuilderList()
public List<? extends JwtOrBuilder> getJwtsOrBuilderList()
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Returns |
Type |
Description |
List<? extends io.grafeas.v1.JwtOrBuilder> |
|
getSerializedPayload()
public ByteString getSerializedPayload()
Required. The serialized payload that is verified by one or more
signatures
.
bytes serialized_payload = 1;
Returns |
Type |
Description |
ByteString |
The serializedPayload.
|
getSignatures(int index)
public Signature getSignatures(int index)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter |
Name |
Description |
index |
int
|
getSignaturesBuilder(int index)
public Signature.Builder getSignaturesBuilder(int index)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter |
Name |
Description |
index |
int
|
getSignaturesBuilderList()
public List<Signature.Builder> getSignaturesBuilderList()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
getSignaturesCount()
public int getSignaturesCount()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Returns |
Type |
Description |
int |
|
getSignaturesList()
public List<Signature> getSignaturesList()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
getSignaturesOrBuilder(int index)
public SignatureOrBuilder getSignaturesOrBuilder(int index)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter |
Name |
Description |
index |
int
|
getSignaturesOrBuilderList()
public List<? extends SignatureOrBuilder> getSignaturesOrBuilderList()
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Returns |
Type |
Description |
List<? extends io.grafeas.v1.SignatureOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public AttestationOccurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AttestationOccurrence.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(AttestationOccurrence other)
public AttestationOccurrence.Builder mergeFrom(AttestationOccurrence other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttestationOccurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeJwts(int index)
public AttestationOccurrence.Builder removeJwts(int index)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Parameter |
Name |
Description |
index |
int
|
removeSignatures(int index)
public AttestationOccurrence.Builder removeSignatures(int index)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public AttestationOccurrence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setJwts(int index, Jwt value)
public AttestationOccurrence.Builder setJwts(int index, Jwt value)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
Parameters |
Name |
Description |
index |
int
|
value |
Jwt
|
setJwts(int index, Jwt.Builder builderForValue)
public AttestationOccurrence.Builder setJwts(int index, Jwt.Builder builderForValue)
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
repeated .grafeas.v1.Jwt jwts = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AttestationOccurrence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSerializedPayload(ByteString value)
public AttestationOccurrence.Builder setSerializedPayload(ByteString value)
Required. The serialized payload that is verified by one or more
signatures
.
bytes serialized_payload = 1;
Parameter |
Name |
Description |
value |
ByteString
The serializedPayload to set.
|
setSignatures(int index, Signature value)
public AttestationOccurrence.Builder setSignatures(int index, Signature value)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
setSignatures(int index, Signature.Builder builderForValue)
public AttestationOccurrence.Builder setSignatures(int index, Signature.Builder builderForValue)
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
repeated .grafeas.v1.Signature signatures = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final AttestationOccurrence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides