Use the KMS instance SDK for Java to encrypt and decrypt data, sign and verify signatures, and retrieve secret values through KMS instance APIs.
Source code
The SDK source code is available at alibabacloud-dkms-gcs-java-sdk.
API documentation
After you integrate the SDK, call KMS instance APIs through the KMS instance endpoint to generate data keys, encrypt and decrypt data, sign and verify signatures, and retrieve secret values. For API documentation, see Instance API Overview.
Sample code
The following table lists common examples. More samples are available in the SDK source code.
|
Sample file name |
Description |
|
Generates and decrypts data keys. |
|
|
Encrypts and decrypts data (ciphertext is in envelope format). |
|
|
Encrypts and decrypts data (ciphertext is in raw format). |
|
|
Signs data and verifies digital signatures. |
|
|
Retrieves secret values. |