Java ME 以安全的方式使用 .NET Web 服务

发布于 2024-09-16 03:04:44 字数 589 浏览 7 评论 0原文

我正在为 Blackberry 开发一个应用程序,该应用程序使用托管在我们的公共 Web 服务器上的 .NET Web 服务。

我们使用 JSON 作为数据交换格式。

到目前为止,我们已经测试了该应用程序,一切工作正常,但有一件大事需要解决:.NET Web 服务是公共的。如果您转到服务 URL:http://www.whatever.com/myservice.asmx 您可以为参数赋值并调用服务。

显然,我们不想让它们公开,并且我们希望它们是安全的。

我一直在 stackoverflow 上阅读一些问题,但没有找到好的答案。

我正在考虑向我拥有的每个网络服务添加一个“密码”参数,并向服务器发送密码,以便它可以验证是黑莓试图使用该服务而不是垃圾邮件发送者。该密码将作为字符串出现在 Blackberry 执行的每个 JSON 请求中。

另一件值得一提的事情是,我们有一个来自 GoDaddy 的简单网络托管解决方案,因此我们的托管是共享的,我们无法完全控制计算机。

这是正确的做法吗?

I'm developing an application for Blackberry that consumes .NET Web Services that are hosted on our public web server.

We are using JSON as our data interchange format.

So far we have been testing the application and everything is working fine but there is one big thing to solve: the .NET web services are public. If you go to the service URL: http://www.whatever.com/myservice.asmx you can assign values to the parameteres and invoke the service.

Obviously we don't want to have them publicly available and we want them to be secure.

I've been reading some questions here at stackoverflow but I haven't found a good answer.

I was thinking of adding a "password" parameter to every web service that I have and there sending a password to the server so that it can verify that it's the Blackberry trying to consume the service and not some spammer. That password would go as a String in each JSON request that the Blackberry does.

Another thing that is important to mention is that we have a simple web hosting solution from GoDaddy so our hosting is shared, we don't have full control on the computer.

Is this a correct approach?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁我热情 2024-09-23 03:04:44

为了根据内容重要性提供更好的保护,您可以使用校验和或加密方法。

您可以使用 bouncycastle 加密 API http://www.bouncycastle.org/。这是免费的而且很好。

这可以在 C# Web 服务和黑莓应用程序中使用,因为它同时支持 C# 和 Java。

For better protection depending on content importance you can use checksums or encryption methods.

You can use bouncycastle cryptography API http://www.bouncycastle.org/. This is free and good.

This can be used in both C# web service and blackberry application because it supports both C# and Java.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文