public class DigestUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
cleanChecksum(String rawChecksum,
Digester digester,
String expectedFilename)
Take a raw checksum string and verify that it matches the expectedFilename and digester, then
return the trimmed checksum string.
|
static String |
cleanChecksum(String checksum,
String algorithm,
String path) |
public static String cleanChecksum(String rawChecksum, Digester digester, String expectedFilename) throws DigesterException
rawChecksum
- the raw checksum string that may include the filename.digester
- the expected digester for this checksum string.DigesterException
- if there was a problem verifying the checksum string.public static String cleanChecksum(String checksum, String algorithm, String path) throws DigesterException
DigesterException
Copyright © 2001–2015 Codehaus Plexus. All rights reserved.