关于隐藏 AllJoyn 接口的可能性

On a possibility of hiding AllJoyn interface

是否可以隐藏 AllJoyn 界面? IE。不通过内省、about 等公开,而是在进行特定调用时调用。

谢谢!

您可以创建不支持 org.allseen.Introspectable 或 org.freedesktop.DBus.Introspectable 接口的总线对象。

然而,这很难做到,因为您基本上需要更改 ajn::BusAttachment::Internal 的实现,以便它不会自动添加这些接口(即调用 org::freedesktop::DBus::CreateInterfaces()org::alljoyn::CreateInterfaces() 位于 BusAttachment.cc)。这意味着基于此修改后的实现构建您自己的 AllJoyn Core 版本。 注意:这样做意味着您的产品没有使用 AllJoyn Core 的兼容基础实现,因此可能无法通过 AllJoyn 认证。