Amazon s3 CloudFront签名url的最长过期时间是多少
我正在使用CloudFront从中生成签名URL CloudFront签名URL的最长过期时间是多少?在这场没有日期的争论中我该怎么说 示例代码片段Amazon s3 CloudFront签名url的最长过期时间是多少,amazon-s3,amazon-cloudfront,Amazon S3,Amazon Cloudfront,我正在使用CloudFront从中生成签名URL CloudFront签名URL的最长过期时间是多少?在这场没有日期的争论中我该怎么说 示例代码片段 String signedUrlCanned = CloudFrontService.signUrlCanned( "http://" + distributionDomain + "/" + s3ObjectKey, // Resource URL or Path keyPairId, // Certificate ide
String signedUrlCanned = CloudFrontService.signUrlCanned(
"http://" + distributionDomain + "/" + s3ObjectKey, // Resource URL or Path
keyPairId, // Certificate identifier,
// an active trusted signer for the distribution
derPrivateKey, // DER Private key data
ServiceUtils.parseIso8601Date("2011-11-14T22:20:00.000Z") // DateLessThan
);
System.out.println(signedUrlCanned);
注意:它应该是一个像Instagram cdn URL一样的永久URLCloudFront签名URL没有最长过期时间,但您必须始终指定
无日期sthan
参数
CloudFront需要此值以防止用户永久访问您的私人内容
为了有一个永久性的类似URL,您应该将DateLessThan
也看到和