         self.addVersion(request)
     }
     
-    // MARK: - Private Methods
+    // MARK: - Utility Methods
     
     func getCurrentTimeStamp() -> String {
         let dateFormatter = NSDateFormatter()

        request.addValue(version, forHTTPHeaderField: versionHTTPHeader)
    }
    
    func addSignature(request: NSMutableURLRequest, timestamp: String) {
        if let signature = generateSignature(request, timestamp: timestamp) {
            request.addValue(signature, forHTTPHeaderField: signatureHTTPHeader)
        }
    }
    
    func generateSignature(request: NSMutableURLRequest, timestamp: String) -> String? {
        if let path = request.URL?.path?.stringByRemovingPercentEncoding, query = request.URL?.query?.stringByRemovingPercentEncoding {
            let delimiter = "\n"

//
//  Created by Tischuk, Christopher on 2/10/16.
//  Copyright © 2016 Edmunds.com, Inc. All rights reserved.
/**
    Encodes an outbound NSMutableURLRequest with security credentials
    so that it can be authenticated on the receiving server.
*/

import Foundation
import CommonCrypto
