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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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>
|
Returns
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>
|
Returns
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
|
Returns
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;
Parameters
Returns
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
Returns
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;
Parameter
Returns
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;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttestationOccurrence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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;
Parameters
Returns
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;
Parameters
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Returns
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
Returns
build()
public AttestationOccurrence build()
Returns
buildPartial()
public AttestationOccurrence buildPartial()
Returns
clear()
public AttestationOccurrence.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AttestationOccurrence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AttestationOccurrence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSerializedPayload()
public AttestationOccurrence.Builder clearSerializedPayload()
Required. The serialized payload that is verified by one or more
signatures
.
bytes serialized_payload = 1;
Returns
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;
Returns
clone()
public AttestationOccurrence.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AttestationOccurrence getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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;
Returns
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
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;
Returns
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
Returns
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
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
Returns
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
Returns
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;
Returns
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
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;
Returns
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
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public AttestationOccurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AttestationOccurrence.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(AttestationOccurrence other)
public AttestationOccurrence.Builder mergeFrom(AttestationOccurrence other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttestationOccurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AttestationOccurrence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
|
Returns
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;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AttestationOccurrence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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.
|
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final AttestationOccurrence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides