public class CheckFileHash extends Object
Constructor and Description |
---|
CheckFileHash() |
Modifier and Type | Method and Description |
---|---|
void |
fileToCheck(File fileToCheck)
The File to perform a Hash check upon
|
boolean |
hasAValidHash()
Performs a expectedFileHash check on a File.
|
void |
hashDetails(String hash,
HashType hashType)
Hash details used to perform the Hash check
|
public void fileToCheck(File fileToCheck) throws FileNotFoundException
fileToCheck
- check to see if file existsFileNotFoundException
public void hashDetails(String hash, HashType hashType)
hash
- set file hashhashType
- set hash typepublic boolean hasAValidHash() throws IOException, org.apache.maven.plugin.MojoExecutionException
IOException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2014. All Rights Reserved.