org.codehaus.plexus.digest
public class DigestUtils extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
cleanChecksum(java.lang.String rawChecksum,
Digester digester,
java.lang.String expectedFilename)
Take a raw checksum string and verify that it matches the expectedFilename and digester, then
return the trimmed checksum string.
|
static java.lang.String |
cleanChecksum(java.lang.String checksum,
java.lang.String algorithm,
java.lang.String path) |
public static java.lang.String cleanChecksum(java.lang.String rawChecksum, Digester digester, java.lang.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 java.lang.String cleanChecksum(java.lang.String checksum, java.lang.String algorithm, java.lang.String path) throws DigesterException
DigesterException
Copyright © 2014. All Rights Reserved.