Class ChunkedUploadPayload

    • Constructor Detail

      • ChunkedUploadPayload

        public ChunkedUploadPayload​(Payload payload,
                                    int blockSize,
                                    String timestamp,
                                    String scope,
                                    com.google.common.io.ByteProcessor<byte[]> hmacSHA256,
                                    String seedSignature)
    • Method Detail

      • constructSignedChunk

        protected byte[] constructSignedChunk​(int userDataLen,
                                              byte[] userData)
        Returns a chunk for upload consisting of the signed 'header' or chunk prefix plus the user data. The signature of the chunk incorporates the signature of the previous chunk (or, if the first chunk, the signature of the headers portion of the request).
        Parameters:
        userDataLen - The length of the user data contained in userData
        userData - Contains the user data to be sent in the upload chunk
        Returns:
        A new buffer of data for upload containing the chunk header plus user data