Class Provenance
java.lang.Object
org.apache.commons.release.plugin.slsa.v1_2.Provenance
Root predicate of an SLSA v1.2 provenance attestation, describing what was built and how.
This predicate combines a BuildDefinition (the inputs) with RunDetails (the execution context). It is intended to be
used as the predicate field of an in-toto Statement.
- Since:
- 1.10.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Provenance instance.Provenance(BuildDefinition buildDefinition, RunDetails runDetails) Creates a new Provenance with the given build definition and run details. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the build definition describing all inputs that produced the build output.Gets the details about the invocation of the build tool and the environment in which it was run.inthashCode()setBuildDefinition(BuildDefinition buildDefinition) Sets the build definition describing all inputs that produced the build output.setRunDetails(RunDetails runDetails) Sets the details about the invocation of the build tool and the environment in which it was run.toString()
-
Field Details
-
PREDICATE_TYPE
Predicate type URI used in the in-totoStatementwrapping this provenance.- See Also:
-
-
Constructor Details
-
Provenance
public Provenance()Creates a new Provenance instance. -
Provenance
Creates a new Provenance with the given build definition and run details.- Parameters:
buildDefinition- inputs that defined the build.runDetails- details about the build invocation.
-
-
Method Details
-
equals
-
getBuildDefinition
Gets the build definition describing all inputs that produced the build output.Includes source code, dependencies, build tools, base images, and other materials.
- Returns:
- The build definition, or
nullif not set.
-
getRunDetails
Gets the details about the invocation of the build tool and the environment in which it was run.- Returns:
- The run details, or
nullif not set.
-
hashCode
-
setBuildDefinition
Sets the build definition describing all inputs that produced the build output.- Parameters:
buildDefinition- The build definition.- Returns:
- this for chaining.
-
setRunDetails
Sets the details about the invocation of the build tool and the environment in which it was run.- Parameters:
runDetails- The run details.- Returns:
- this for chaining.
-
toString
-