Reference documentation and code samples for the Grafeas V1 Client class AttestationOccurrence.
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.
Generated from protobuf messagegrafeas.v1.AttestationOccurrence
Namespace
Grafeas \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ serialized_payload
string
Required. The serialized payload that is verified by one or moresignatures.
One or more signatures overserialized_payload. Verifier implementations should consider this attestation message verified if at least onesignatureverifiesserialized_payload. SeeSignaturein common.proto for more details on signature structure and verification.
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 theserialized_payloadfield when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then theserialized_payloadSHOULD be left empty. Each JWT SHOULD encode a claim specific to theresource_uriof this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
getSerializedPayload
Required. The serialized payload that is verified by one or moresignatures.
Returns
Type
Description
string
setSerializedPayload
Required. The serialized payload that is verified by one or moresignatures.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSignatures
One or more signatures overserialized_payload. Verifier implementations
should consider this attestation message verified if at least onesignatureverifiesserialized_payload. SeeSignaturein common.proto
for more details on signature structure and verification.
One or more signatures overserialized_payload. Verifier implementations
should consider this attestation message verified if at least onesignatureverifiesserialized_payload. SeeSignaturein common.proto
for more details on signature structure and verification.
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 theserialized_payloadfield
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then theserialized_payloadSHOULD be left empty.
Each JWT SHOULD encode a claim specific to theresource_uriof this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
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 theserialized_payloadfield
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then theserialized_payloadSHOULD be left empty.
Each JWT SHOULD encode a claim specific to theresource_uriof this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Grafeas V1 Client - Class AttestationOccurrence (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/grafeas/latest/V1.AttestationOccurrence)\n- [1.2.1](/php/docs/reference/grafeas/1.2.1/V1.AttestationOccurrence)\n- [1.1.3](/php/docs/reference/grafeas/1.1.3/V1.AttestationOccurrence)\n- [1.0.0](/php/docs/reference/grafeas/1.0.0/V1.AttestationOccurrence)\n- [0.10.3](/php/docs/reference/grafeas/0.10.3/V1.AttestationOccurrence)\n- [0.9.0](/php/docs/reference/grafeas/0.9.0/V1.AttestationOccurrence)\n- [0.8.3](/php/docs/reference/grafeas/0.8.3/V1.AttestationOccurrence)\n- [0.7.1](/php/docs/reference/grafeas/0.7.1/V1.AttestationOccurrence)\n- [0.6.0](/php/docs/reference/grafeas/0.6.0/V1.AttestationOccurrence)\n- [0.5.0](/php/docs/reference/grafeas/0.5.0/V1.AttestationOccurrence)\n- [0.4.4](/php/docs/reference/grafeas/0.4.4/V1.AttestationOccurrence) \nReference documentation and code samples for the Grafeas V1 Client class AttestationOccurrence.\n\nOccurrence that represents a single \"attestation\". The authenticity of an\nattestation can be verified using the attached signature. If the verifier\ntrusts the public key of the signer, then verifying the signature is\nsufficient to establish trust. In this circumstance, the authority to which\nthis attestation is attached is primarily useful for lookup (how to find\nthis attestation if you already know the authority and artifact to be\nverified) and intent (for which authority this attestation was intended to\nsign.\n\nGenerated from protobuf message `grafeas.v1.AttestationOccurrence`\n\nNamespace\n---------\n\nGrafeas \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSerializedPayload\n\nRequired. The serialized payload that is verified by one or more\n`signatures`.\n\n### setSerializedPayload\n\nRequired. The serialized payload that is verified by one or more\n`signatures`.\n\n### getSignatures\n\nOne or more signatures over `serialized_payload`. Verifier implementations\nshould consider this attestation message verified if at least one\n`signature` verifies `serialized_payload`. See `Signature` in common.proto\nfor more details on signature structure and verification.\n\n### setSignatures\n\nOne or more signatures over `serialized_payload`. Verifier implementations\nshould consider this attestation message verified if at least one\n`signature` verifies `serialized_payload`. See `Signature` in common.proto\nfor more details on signature structure and verification.\n\n### getJwts\n\nOne or more JWTs encoding a self-contained attestation.\n\nEach JWT encodes the payload that it verifies within the JWT itself.\nVerifier implementation SHOULD ignore the `serialized_payload` field\nwhen verifying these JWTs.\nIf only JWTs are present on this AttestationOccurrence, then the\n`serialized_payload` SHOULD be left empty.\nEach JWT SHOULD encode a claim specific to the `resource_uri` of this\nOccurrence, but this is not validated by Grafeas metadata API\nimplementations. The JWT itself is opaque to Grafeas.\n\n### setJwts\n\nOne or more JWTs encoding a self-contained attestation.\n\nEach JWT encodes the payload that it verifies within the JWT itself.\nVerifier implementation SHOULD ignore the `serialized_payload` field\nwhen verifying these JWTs.\nIf only JWTs are present on this AttestationOccurrence, then the\n`serialized_payload` SHOULD be left empty.\nEach JWT SHOULD encode a claim specific to the `resource_uri` of this\nOccurrence, but this is not validated by Grafeas metadata API\nimplementations. The JWT itself is opaque to Grafeas."]]