简体   繁体   English

适用于 Java 的 AWS 开发工具包是否在安全通道中与 S3 服务器通信?

[英]Does AWS SDK for Java communicate in a secure channel with S3 servers?

I would like to think that it's a big YES, but I prefer to ask before to suppose.我想认为这是一个很大的 YES,但我更愿意先问一下假设。 So, do you know if the AWS SDK for Java always uses a secure channel when I download/upload files from/to S3 buckets?那么,您知道当我从/向 S3 存储桶下载/上传文件时,适用于 Java 的 AWS 开发工具包是否始终使用安全通道? Or this is something that should be configured when I write the code or into the S3 buckets itself?或者这是在我编写代码或写入 S3 存储桶本身时应该配置的内容?

Amazon S3 end points support both HTTP and HTTPS ( http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region ) Amazon S3 端点同时支持 HTTP 和 HTTPS ( http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region )

when you're using the Java SDK you will create an AmazonS3Client and if you do not specify to he specifically using the HTTP protocol it will use by default HTTPS (see http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/AmazonS3Client.html#setEndpoint(java.lang.String) )当您使用 Java SDK 时,您将创建一个AmazonS3Client ,如果您没有特别指定使用 HTTP 协议,它将默认使用 HTTPS(请参阅http://docs.aws.amazon.com/AWSJavaSDK/latest/ javadoc/com/amazonaws/services/s3/AmazonS3Client.html#setEndpoint(java.lang.String) )

Callers can pass in just the endpoint (ex: "ec2.amazonaws.com") or a full URL, including the protocol (ex: " https://ec2.amazonaws.com ").调用者可以只传入端点(例如:“ec2.amazonaws.com”)或完整的 URL,包括协议(例如:“ https://ec2.amazonaws.com ”)。 If the protocol is not specified here, the default protocol from this client's ClientConfiguration will be used, which by default is HTTPS .如果此处未指定协议,则将使用此客户端的 ClientConfiguration 中的默认协议,默认情况下为 HTTPS

Answer with link to a newer Java SDK docs :使用指向更新的Java SDK 文档的链接回答:

setProtocol - The default configuration is to use HTTPS for all requests for increased security. setProtocol - 默认配置是对所有请求使用HTTPS以提高安全性。

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

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