docs: public void putObject(String bucketName, String objectName, InputStream stream, long size,
                          ServerSideEncryption sse)
      throws InvalidBucketNameException, NoSuchAlgorithmException, IOException,
             InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException,
             InternalException,
             InvalidArgumentException, InsufficientDataException {
      if ((sse.getType() == (ServerSideEncryption.Type.SSE_C)) && (!this.baseUrl.isHttps())) {
        throw new InvalidArgumentException("SSE_C operations must be performed over a secure connection.");
      } else if ((sse.getType() == (ServerSideEncryption.Type.SSE_KMS)) && (!this.baseUrl.isHttps())) {
        throw new InvalidArgumentException("SSE_KMS operations must be performed over a secure connection.");
      }
      Map<String, String> headerMap = new HashMap<>();
      putObject(bucketName, objectName, size, new BufferedInputStream(stream), headerMap, sse);
    }