Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support to set KMS Server endpoint when use client-side-encryption #170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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