赞
踩
S3官方JAVA SDK文档
Java代码
public static void signUrl() {
//test
String accessKey = "****************";
String secretKey = "****************";
String region = "****************";
//桶名称
String bucketName = "****************";
//文件地址
String objectKey = "****************";
try {
AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
ClientConfiguration config = new ClientConfiguration();
String proxyHost = System.getProperty("http.proxyHost");
String proxyPort = System.getProperty("http.proxyPort");
if (proxyHost != null && proxyPort != null) {
config.setProxyHost(proxyHost);
config.setProxyPort(Integer.valueOf(proxyPort));
}
Amazon
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。