Esempio n. 1
0
 /// <summary>
 /// Signs the final chunk containing trailing headers
 /// </summary>
 /// <param name="trailingHeaders">Trailing header keys and values</param>
 /// <param name="previousSignature">Signature of the previously signed chunk</param>
 /// <param name="headerSigningResult">Signing result for the "seed" signature consisting of headers</param>
 /// <returns>Signature of the trailing header chunk</returns>
 public string SignTrailingHeaderChunk(IDictionary <string, string> trailingHeaders, string previousSignature, AWS4aSigningResult headerSigningResult)
 {
     return(_awsSigV4AProvider.SignTrailingHeaderChunk(trailingHeaders, previousSignature, headerSigningResult));
 }
Esempio n. 2
0
 /// <summary>
 /// Calculates the signature for a single chunk of a chunked SigV4a request
 /// </summary>
 /// <param name="chunkBody">Content of the current chunk</param>
 /// <param name="previousSignature">Signature of the previous chunk</param>
 /// <param name="headerSigningResult">Signing result of the request's header</param>
 /// <returns>Unpadded SigV4a signature of the given chunk</returns>
 public string SignChunk(Stream chunkBody, string previousSignature, AWS4aSigningResult headerSigningResult)
 {
     return(_awsSigV4AProvider.SignChunk(chunkBody, previousSignature, headerSigningResult));
 }