Package co.cryptoservice.sdk
Record Class CbomDocument
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.CbomDocument
- Record Components:
bomFormat- always CycloneDXcomponents- the componentsmetadata- the key metadata, or nullserialNumber- A fresh urn:uuid for every documentspecVersion- cycloneDX specification versionversion- BOM version
public record CbomDocument(String bomFormat, List<CbomComponent> components, com.fasterxml.jackson.databind.JsonNode metadata, String serialNumber, String specVersion, int version)
extends Record
What
GET /v2/compliance/cbom answers: cryptographic Bill of Materials (CBOM) in CycloneDX
1.6 format.-
Constructor Summary
ConstructorsConstructorDescriptionCbomDocument(String bomFormat, List<CbomComponent> components, com.fasterxml.jackson.databind.JsonNode metadata, String serialNumber, String specVersion, int version) Creates an instance of aCbomDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebomFormatrecord component.Returns the value of thecomponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.fasterxml.jackson.databind.JsonNodemetadata()Returns the value of themetadatarecord component.Returns the value of theserialNumberrecord component.Returns the value of thespecVersionrecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
CbomDocument
public CbomDocument(String bomFormat, List<CbomComponent> components, com.fasterxml.jackson.databind.JsonNode metadata, String serialNumber, String specVersion, int version) Creates an instance of aCbomDocumentrecord class.- Parameters:
bomFormat- the value for thebomFormatrecord componentcomponents- the value for thecomponentsrecord componentmetadata- the value for themetadatarecord componentserialNumber- the value for theserialNumberrecord componentspecVersion- the value for thespecVersionrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
toString
Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
bomFormat
Returns the value of thebomFormatrecord component.- Returns:
- the value of the
bomFormatrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
metadata
public com.fasterxml.jackson.databind.JsonNode metadata()Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
serialNumber
Returns the value of theserialNumberrecord component.- Returns:
- the value of the
serialNumberrecord component
-
specVersion
Returns the value of thespecVersionrecord component.- Returns:
- the value of the
specVersionrecord component
-
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-