internal void AuthorizeRequest(S3Request request, HttpWebRequest webRequest, string bucketName)
{
if (BeforeAuthorize != null)
BeforeAuthorize(this, new S3RequestArgs(request));
// if you haven't set a secret access key, we can't authorize anything! maybe
// you're talking to a mock S3 server. At any rate, the server will complain
// if it expects the authorization.
if (authorizer != null)
authorizer.AuthorizeRequest(webRequest, bucketName);
}