Skip to content

Conversation

@sinjoywong
Copy link

在测试TCE下kms托管的客户端加密功能时,发现sdk没有指定kms服务器的endpoint的配置接口,而是固定了公有云kms服务器地址。因此增加一个构造函数,可以配置kms服务器地址。
使用方法示例:

      {
      String kmsEndPoint = "";
      HttpProfile httpProfile = new HttpProfile();
      httpProfile.setEndpoint(kmsEndPoint);
      httpProfile.setProtocol(HttpProfile.REQ_HTTP);
      ClientProfile clientProfile = new ClientProfile();
      clientProfile.setHttpProfile(httpProfile);

      COSEncryptionClient cosEncryptionClient =
              new COSEncryptionClient(new COSStaticCredentialsProvider(cred),
                      new KMSEncryptionMaterialsProvider(encryptionMaterials), clientConfig,
                      cryptoConf,clientProfile);
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant