Class AWS::Core::Signers::Version4::ChunkSignedStream
In: lib/aws/core/signers/version_4/chunk_signed_stream.rb
Parent: Object

Methods

new   read   rewind  

Constants

DEFAULT_CHUNK_SIZE = 128 * 1024   @api private
MAX_BUFFER_SIZE = 256 * 1024   @api private
CHUNK_SIGNATURE_HEADER = ";chunk-signature="   @api private
CHUNK_STRING_TO_SIGN_PREFIX = "AWS4-HMAC-SHA256-PAYLOAD"   @api private
SIGNATURE_LENGTH = 64   @api private
CLRF = "\r\n"   @api private

Attributes

size  [R]  @return [Integer] the size of the final (signed) stream

Public Class methods

@param [IO] stream The original http request body stream. @param [Integer] stream_size Size of the original stream in bytes.

  This must be greater than 0.

@param [String] key The derived sigv4 signing key. @param [String] key_path The scope of the derived key. @param [String] datetime The iso8601 formatted datetime. @param [String] signature The computed signature of the request headers. @return [IO] Returns an IO-like object.

Public Instance methods

@param [Integer] bytes (nil) @param [String] output_buffer (nil) @return [String,nil]

@return [Integer]

[Validate]