简体   繁体   English

如何在 REST web 服务中进行身份验证?

[英]how to do authentication in REST web service?

I want to know how to do authenticate for REST web service in java?我想知道如何在 java 中对 REST web 服务进行身份验证? My supervisor want to get the format like amazon s3curl.我的主管想要获得像 amazon s3curl 这样的格式。 Everytime user request, they need to give id key and access key.每次用户请求时,他们都需要提供 id 密钥和访问密钥。 Which API should i used or for reference or sample code?我应该使用哪个 API 或作为参考或示例代码?

Amazon has an AWS SDK for Java that includes a sample S3 project, from which you could learn how they do authentication. Amazon 有一个适用于 Java 的AWS SDK ,其中包括一个示例 S3 项目,您可以从中了解他们如何进行身份验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM