Install Alibaba Cloud SDK (Java)

更新时间:
复制 MD 格式

Alibaba Cloud SDK for Java lets you call KMS through OpenAPI to manage keys and secrets and to perform cryptographic operations such as encryption, decryption, and secrets retrieval. Management operations (such as creating keys) are available through the shared gateway. Business operations are available through both the shared gateway and the dedicated gateway.

For available versions, source code, and SDK reference, see kms-20160120.

Before you start, review the Alibaba Cloud SDK overview to understand supported APIs, gateway differences, and the integration workflow.

Prerequisites

Before you begin, ensure that you have:

Install the SDK

Add the following Maven dependencies to your project's pom.xml. Maven downloads the packages automatically from the Maven repository.

<dependency>
  <groupId>com.aliyun</groupId>
  <artifactId>kms20160120</artifactId>
  <version>1.2.3</version>
</dependency>
<dependency>
  <groupId>com.aliyun</groupId>
  <artifactId>tea</artifactId>
  <version>1.3.2</version>
</dependency>
<dependency>
  <groupId>com.aliyun</groupId>
  <artifactId>tea-openapi</artifactId>
  <version>0.3.6</version>
</dependency>
Important

Use the latest version. For available versions and source code, see kms-20160120.