Closed DevDengChao closed 2 years ago
现在可行的解决方案:
OSSCredentialProvider credentialProvider = new OSSStsTokenCredentialProvider(accessKeyId, accessKeySecret, securityToken);
ClientConfiguration conf = new ClientConfiguration();
if (!endpoint.startsWith("http")) {
endpoint = "https://" + endpoint; // 手动拼接 https:// 协议前缀
}
OSSClient mOss = new OSSClient(context, endpoint, credentialProvider, conf);
复现步骤:
Ref: