code: public void registerApp(String appId, ByteBuffer shuffleSecret) {
      registerApp(appId, JavaUtils.bytesToString(shuffleSecret));
    }
docs: Register an application with its secret specified as a byte buffer.