public static String compareChecksum ( String providerChecksum , String spaceId , String contentId , String checksum ) throws ChecksumMismatchException { if ( ! providerChecksum . equals ( checksum ) ) { String err = "Content " + contentId + " was added to space " + spaceId + " but the checksum, either provided or computed " + "enroute, (" + checksum + ") does not match the checksum " + "computed by the storage provider (" + providerChecksum + "). This content should be retransmitted." ; log . warn ( err ) ; throw new ChecksumMismatchException ( err , NO_RETRY ) ; } return providerChecksum ; }
Determines if two checksum values are equal