Class BomUtils
java.lang.Object
org.cyclonedx.util.BomUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateHashes(File file, Version schemaVersion) Calculates the hashes of the specified file.private static Hash.AlgorithmtoAlgorithm(MessageDigest digest) static booleanvalidateUriString(String uri) static booleanvalidateUrlString(String url) Deprecated.
-
Constructor Details
-
BomUtils
private BomUtils()
-
-
Method Details
-
calculateHashes
Calculates the hashes of the specified file.- Parameters:
file- the File to calculate hashes onschemaVersion- enum denoting the schema version in use. Affects hash algorithm selection.- Returns:
- a List of Hash objets
- Throws:
IOException- an IOException- Since:
- 1.0.0
-
toAlgorithm
-
validateUrlString
Deprecated. -
validateUriString
-