Record Class ReleaseAttestationMetadata
java.lang.Object
java.lang.Record
org.j7m.middleware.attestation.ReleaseAttestationMetadata
- Record Components:
sbomReference- SBOM URI or file referencesbomFormat- SBOM format, such as SPDX or CycloneDXartifactDigest- artifact digestbuildProvenanceReference- provenance referencesourceRevision- source revisionbuildTimestamp- build timestampsignerIdentity- safe signer identitydependencyPolicyStatus- dependency policy resultvexReference- vulnerability/VEX referencemetadata- additional safe metadata
public record ReleaseAttestationMetadata(String sbomReference, String sbomFormat, String artifactDigest, String buildProvenanceReference, String sourceRevision, Instant buildTimestamp, String signerIdentity, String dependencyPolicyStatus, String vexReference, Map<String,String> metadata)
extends Record
Safe supply-chain and release attestation metadata.
The record carries references, digests, and signer identifiers only. It never contains private keys, tokens, or SBOM contents.
-
Constructor Summary
ConstructorsConstructorDescriptionReleaseAttestationMetadata(String sbomReference, String sbomFormat, String artifactDigest, String buildProvenanceReference, String sourceRevision, Instant buildTimestamp, String signerIdentity, String dependencyPolicyStatus, String vexReference, Map<String, String> metadata) Creates immutable safe metadata. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactDigestrecord component.Returns the value of thebuildProvenanceReferencerecord component.Returns the value of thebuildTimestamprecord component.Returns the value of thedependencyPolicyStatusrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.Returns the value of thesbomFormatrecord component.Returns the value of thesbomReferencerecord component.Returns the value of thesignerIdentityrecord component.Returns the value of thesourceRevisionrecord component.final StringtoString()Returns a string representation of this record class.static ReleaseAttestationMetadataReturns metadata that explicitly reports unavailable SBOM/provenance.Returns the value of thevexReferencerecord component.
-
Constructor Details
-
ReleaseAttestationMetadata
public ReleaseAttestationMetadata(String sbomReference, String sbomFormat, String artifactDigest, String buildProvenanceReference, String sourceRevision, Instant buildTimestamp, String signerIdentity, String dependencyPolicyStatus, String vexReference, Map<String, String> metadata) Creates immutable safe metadata.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sbomReference
Returns the value of thesbomReferencerecord component.- Returns:
- the value of the
sbomReferencerecord component
-
sbomFormat
Returns the value of thesbomFormatrecord component.- Returns:
- the value of the
sbomFormatrecord component
-
artifactDigest
Returns the value of theartifactDigestrecord component.- Returns:
- the value of the
artifactDigestrecord component
-
buildProvenanceReference
Returns the value of thebuildProvenanceReferencerecord component.- Returns:
- the value of the
buildProvenanceReferencerecord component
-
sourceRevision
Returns the value of thesourceRevisionrecord component.- Returns:
- the value of the
sourceRevisionrecord component
-
buildTimestamp
Returns the value of thebuildTimestamprecord component.- Returns:
- the value of the
buildTimestamprecord component
-
signerIdentity
Returns the value of thesignerIdentityrecord component.- Returns:
- the value of the
signerIdentityrecord component
-
dependencyPolicyStatus
Returns the value of thedependencyPolicyStatusrecord component.- Returns:
- the value of the
dependencyPolicyStatusrecord component
-
vexReference
Returns the value of thevexReferencerecord component.- Returns:
- the value of the
vexReferencerecord component
-
metadata