接口 QCLOUDKMS
-
- 所有已知实现类:
TencentCloudKMSClient
public interface QCLOUDKMS
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 com.tencentcloudapi.kms.v20190118.models.DecryptResponsedecrypt(com.tencentcloudapi.kms.v20190118.models.DecryptRequest decryptRequest)Decrypts ciphertext that was encrypted by a KMS customer master key (CMK) using any of the following operations: encrypt generateDataKeycom.tencentcloudapi.kms.v20190118.models.EncryptResponseencrypt(com.tencentcloudapi.kms.v20190118.models.EncryptRequest encryptRequest)Encrypts plaintext into ciphertext by using a customer master key (CMK).com.tencentcloudapi.kms.v20190118.models.GenerateDataKeyResponsegenerateDataKey(com.tencentcloudapi.kms.v20190118.models.GenerateDataKeyRequest generateDataKeyRequest)Generates a unique symmetric data key for client-side encryption.voidshutdown()Shuts down this client object, releasing any resources that might be held open.
-
-
-
方法详细资料
-
generateDataKey
com.tencentcloudapi.kms.v20190118.models.GenerateDataKeyResponse generateDataKey(com.tencentcloudapi.kms.v20190118.models.GenerateDataKeyRequest generateDataKeyRequest) throws com.tencent.cos.xml.exception.CosXmlClientExceptionGenerates a unique symmetric data key for client-side encryption. This operation returns a plaintext copy of the data key and a copy that is encrypted under a customer master key (CMK) that you specify. You can use the plaintext key to encrypt your data outside of KMS and store the encrypted data key with the encrypted data.- 抛出:
com.tencent.cos.xml.exception.CosXmlClientException
-
encrypt
com.tencentcloudapi.kms.v20190118.models.EncryptResponse encrypt(com.tencentcloudapi.kms.v20190118.models.EncryptRequest encryptRequest) throws com.tencent.cos.xml.exception.CosXmlClientExceptionEncrypts plaintext into ciphertext by using a customer master key (CMK).- 抛出:
com.tencent.cos.xml.exception.CosXmlClientException
-
decrypt
com.tencentcloudapi.kms.v20190118.models.DecryptResponse decrypt(com.tencentcloudapi.kms.v20190118.models.DecryptRequest decryptRequest) throws com.tencent.cos.xml.exception.CosXmlClientExceptionDecrypts ciphertext that was encrypted by a KMS customer master key (CMK) using any of the following operations: encrypt generateDataKey- 抛出:
com.tencent.cos.xml.exception.CosXmlClientException
-
shutdown
void shutdown()
Shuts down this client object, releasing any resources that might be held open. This is an optional method, and callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client has been shutdown, it should not be used to make any more requests.
-
-