public final class BomUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<Hash> |
calculateHashes(File file,
CycloneDxSchema.Version schemaVersion)
Calculates the hashes of the specified file.
|
static boolean |
validateUrlString(String url) |
public static List<Hash> calculateHashes(File file, CycloneDxSchema.Version schemaVersion) throws IOException
file - the File to calculate hashes onschemaVersion - enum denoting the schema version in use. Affects hash algorithm selection.IOException - an IOExceptionpublic static boolean validateUrlString(String url)
Copyright © 2017–2022 OWASP Foundation. All rights reserved.