显示带有子剪辑的接受证书对话框
我正在开发一个 eclipse 插件,它使用 subclipse API 来签出和更新一些项目。如果服务器上的 SSL 证书无效(已过期),我想显示 subclipse 在这种情况下也显示的确认对话框(拒绝、临时接受、永久接受),但我找不到方法来做到这一点。 有什么想法吗?
谢谢你!
I am working on an eclipse plug-in that uses the subclipse API to checkout and update some projects. In the case the SSL certificate on the server is not valid (expired), I want to show the confirmation dialog that subclipse also shows in this case (reject, accept temporary, accept permanently), but I can not find a way to do that.
Any ideas ?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
网络通信由 Subversion API 处理,并触发 Subclipse 实现的回调来显示对话框。我们注册回调(参见 JavaDocs )
我不太确定你想做什么,但这就是 Subclipse 的做法。我们在调用 API 之前注册一个回调,然后 Subversion 在需要询问用户凭据或接受证书时触发该回调。
Network communications is handled by the Subversion API and it fires a callback that Subclipse implements to show the dialog. We register the callback (see JavaDocs)
I am not exactly sure what you want to do, but that is how Subclipse does it. We register a callback before we call the API and then Subversion fires the callback when it needs to ask the user for credentials or to accept a certificate.