public class VerificationCodeGenerator extends Object
getFileChecksum is called for each file in the directory. This can
be used as a hook to capture all files in the directory and capture the checksum values at
a file level.| Constructor and Description |
|---|
VerificationCodeGenerator(IFileChecksumGenerator fileChecksumGenerator) |
| Modifier and Type | Method and Description |
|---|---|
SpdxPackageVerificationCode |
generatePackageVerificationCode(File sourceDirectory) |
SpdxPackageVerificationCode |
generatePackageVerificationCode(File sourceDirectory,
File[] skippedFiles)
Generate the SPDX Package Verification Code from a directory of files included in the archive
|
static String |
normalizeFilePath(String nonNormalizedFilePath)
Normalizes a file path per the SPDX spec
|
public VerificationCodeGenerator(IFileChecksumGenerator fileChecksumGenerator)
public SpdxPackageVerificationCode generatePackageVerificationCode(File sourceDirectory, File[] skippedFiles) throws NoSuchAlgorithmException, IOException
sourceDirectory - NoSuchAlgorithmExceptionIOExceptionpublic static String normalizeFilePath(String nonNormalizedFilePath)
nonNormalizedFilePath - public SpdxPackageVerificationCode generatePackageVerificationCode(File sourceDirectory) throws NoSuchAlgorithmException, IOException
sourceDirectory - skippedFiles - NoSuchAlgorithmExceptionIOExceptionCopyright © 2014 Linux Foundation. All Rights Reserved.