Class JavaSha1ChecksumGenerator
java.lang.Object
org.spdx.utility.verificationcode.JavaSha1ChecksumGenerator
- All Implemented Interfaces:
IFileChecksumGenerator
Java SHA1 checksum generator using MessageDigest
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFileChecksum(File file) Generate a checksum for the file using SHA1
-
Constructor Details
-
JavaSha1ChecksumGenerator
Create a SHA1 based checksum generator- Throws:
NoSuchAlgorithmException- if the SHA1 algorithm does not exist
-
-
Method Details
-
getFileChecksum
Generate a checksum for the file using SHA1- Specified by:
getFileChecksumin interfaceIFileChecksumGenerator- Parameters:
file- File to generate the checksum for- Returns:
- file checksum
- Throws:
IOException- on IO errors
-