接口 QCLOUDKMS

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      com.tencentcloudapi.kms.v20190118.models.DecryptResponse decrypt​(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 generateDataKey
      com.tencentcloudapi.kms.v20190118.models.EncryptResponse encrypt​(com.tencentcloudapi.kms.v20190118.models.EncryptRequest encryptRequest)
      Encrypts plaintext into ciphertext by using a customer master key (CMK).
      com.tencentcloudapi.kms.v20190118.models.GenerateDataKeyResponse generateDataKey​(com.tencentcloudapi.kms.v20190118.models.GenerateDataKeyRequest generateDataKeyRequest)
      Generates a unique symmetric data key for client-side encryption.
      void shutdown()
      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.CosXmlClientException
        Generates 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.CosXmlClientException
        Encrypts 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.CosXmlClientException
        Decrypts 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.