java.lang.Object
org.kohsuke.github.GHSBOM
Represents an SPDX Software Bill of Materials (SBOM) for a repository.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the creation information for an SBOM.static classRepresents an external reference for a package.static classRepresents a package in the SBOM.static classRepresents a relationship between SPDX elements. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the creation info.Gets the data license.Gets the document describes field.Gets the document namespace.getName()Gets the document name.Gets the list of packages.Gets the relationships.Gets the SPDX identifier.Gets the SPDX version.
-
Constructor Details
-
GHSBOM
public GHSBOM()Create default GHSBOM instance.
-
-
Method Details
-
getCreationInfo
Gets the creation info.- Returns:
- the creation info
-
getDataLicense
Gets the data license.- Returns:
- the data license (typically "CC0-1.0")
-
getDocumentDescribes
Gets the document describes field.- Returns:
- the document describes field, or null if not specified
-
getDocumentNamespace
Gets the document namespace.- Returns:
- the document namespace URI
-
getName
Gets the document name.- Returns:
- the document name
-
getPackages
Gets the list of packages.- Returns:
- the list of packages
-
getRelationships
Gets the relationships.- Returns:
- the relationships between SPDX elements
-
getSPDXID
Gets the SPDX identifier.- Returns:
- the SPDX identifier (typically "SPDXRef-DOCUMENT")
-
getSpdxVersion
Gets the SPDX version.- Returns:
- the SPDX version (e.g., "SPDX-2.3")
-