String expirationInSeconds = Long.toString(expiration.getTime() / 1000L);
String canonicalString = RestUtils.makeS3CanonicalString(
httpVerb, resourcePath, request, expirationInSeconds);
AWSCredentials sanitizedCredentials = sanitizeCredentials(credentials);
String signature = super.sign(canonicalString, sanitizedCredentials.getAWSSecretKey(), SigningAlgorithm.HmacSHA1);
request.addParameter("AWSAccessKeyId", sanitizedCredentials.getAWSAccessKeyId());
request.addParameter("Expires", expirationInSeconds);
request.addParameter("Signature", signature);
}