Java 的 AWS SDK 是否在安全通道中与 S3 服务器通信?

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

我想这是一个很大的肯定,但我更愿意在假设之前先问一下。那么,当我 download/upload 文件 from/to S3 存储桶时,您是否知道 Java 的 AWS SDK 是否总是使用安全通道?或者这是我编写代码或 S3 存储桶本身时应该配置的东西?

A​​mazon S3 端点同时支持 HTTP 和 HTTPS (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)

当您使用 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"). If the protocol is not specified here, the default protocol from this client's ClientConfiguration will be used, which by default is HTTPS.

用 link 回答较新的 Java SDK docs:

setProtocol - The default configuration is to use HTTPS for all requests for increased security.