/// <summary>
        /// Get the ACL for a given object
        /// </summary>
        /// <param name="bucket">The name of the bucket where the object lives, or
        /// the bucket to get the ACL from.</param>
        /// <param name="key">The name of the key to use.</param>
        public AccessControlPolicy getACL(string bucket, string key)
        {
            DateTime timestamp = AWSDateFormatter.GetCurrentTimeResolvedToMillis();

            if (key != null)
            {
                string signature = makeSignature("GetObjectAccessControlPolicy", timestamp);
                return(s3.GetObjectAccessControlPolicy(bucket, key, awsAccessKeyId, timestamp, true, signature, null));
            }
            else
            {
                string signature = makeSignature("GetBucketAccessControlPolicy", timestamp);
                return(s3.GetBucketAccessControlPolicy(bucket, awsAccessKeyId, timestamp, true, signature, null));
            }
        }