Table of Contents

Class AWS4SigningResult

Namespace
Amazon.Runtime.Internal.Auth
Assembly
AWSSDK.Core.dll

Encapsulates the various fields and eventual signing value that makes up an AWS4 signature. This can be used to retrieve the required authorization string or authorization query parameters for the final request as well as hold ongoing signature computations for subsequent calls related to the initial signing.

public class AWS4SigningResult : AWSSigningResultBase
Inheritance
AWS4SigningResult
Inherited Members

Constructors

AWS4SigningResult(string, DateTime, string, string, byte[], byte[])

Constructs a new signing result instance for a computed signature

public AWS4SigningResult(string awsAccessKeyId, DateTime signedAt, string signedHeaders, string scope, byte[] signingKey, byte[] signature)

Parameters

awsAccessKeyId string

The access key that was included in the signature

signedAt DateTime

Date/time (UTC) that the signature was computed

signedHeaders string

The collection of headers names that were included in the signature

scope string

Formatted 'scope' value for signing (YYYYMMDD/region/service/aws4_request)

signingKey byte[]

Returns the key that was used to compute the signature

signature byte[]

Computed signature

Properties

ForAuthorizationHeader

Returns the signature in a form usable as an 'Authorization' header value.

public override string ForAuthorizationHeader { get; }

Property Value

string

ForQueryParameters

Returns the signature in a form usable as a set of query string parameters.

public string ForQueryParameters { get; }

Property Value

string

Signature

Returns the hex string representing the signature

public override string Signature { get; }

Property Value

string

Methods

GetSigningKey()

Returns a copy of the key that was used to compute the signature

public byte[] GetSigningKey()

Returns

byte[]