class SW360AttachmentUtils {

    public static String calculateSha1Hash(Path file) {
        try {
            return calculateHash(file, MessageDigest.getInstance(ALG_SHA1));
        } catch (NoSuchAlgorithmException e) {
            // This cannot happen as every implementation of the Java platform must support this algorithm
            throw new AssertionError("SHA-1 algorithm not supported");
        }
    }

    private  SW360AttachmentUtils();

}