Class AWS4SigningResult
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
awsAccessKeyIdstringThe access key that was included in the signature
signedAtDateTimeDate/time (UTC) that the signature was computed
signedHeadersstringThe collection of headers names that were included in the signature
scopestringFormatted 'scope' value for signing (YYYYMMDD/region/service/aws4_request)
signingKeybyte[]Returns the key that was used to compute the signature
signaturebyte[]Computed signature
Properties
ForAuthorizationHeader
Returns the signature in a form usable as an 'Authorization' header value.
public override string ForAuthorizationHeader { get; }
Property Value
ForQueryParameters
Returns the signature in a form usable as a set of query string parameters.
public string ForQueryParameters { get; }
Property Value
Signature
Returns the hex string representing the signature
public override string Signature { get; }
Property Value
Methods
GetSigningKey()
Returns a copy of the key that was used to compute the signature
public byte[] GetSigningKey()
Returns
- byte[]