Amazon.Runtime.Internal.Auth.EC2Signer.Sign C# (CSharp) Method

Sign() public method

Determines the appropriate signer and signs the request.
If any problems are encountered while signing the request
public Sign ( IRequest request, ClientConfig clientConfig, RequestMetrics metrics, string awsAccessKeyId, string awsSecretAccessKey ) : void
request IRequest The request to have the signature compute for
clientConfig ClientConfig The configuration that specifies which hashing algorithm to use
metrics Amazon.Runtime.Internal.Util.RequestMetrics Request metrics
awsAccessKeyId string The AWS public key
awsSecretAccessKey string The AWS secret key used to sign the request in clear text
return void
        public override void Sign(IRequest request, ClientConfig clientConfig, RequestMetrics metrics, string awsAccessKeyId, string awsSecretAccessKey)
        {
            var aws4Signer = SelectSigner(request, clientConfig) as AWS4Signer;
            if (aws4Signer != null)
                aws4Signer.Sign(request, clientConfig, metrics, awsAccessKeyId, awsSecretAccessKey);
            else
                base.Sign(request, clientConfig, metrics, awsAccessKeyId, awsSecretAccessKey);
        }
    }