类 TencentCloudKMSClient

  • 所有已实现的接口:
    QCLOUDKMS

    public class TencentCloudKMSClient
    extends java.lang.Object
    implements QCLOUDKMS
    Client for accessing TencentCloud KMS.
    • 构造器概要

      构造器 
      构造器 说明
      TencentCloudKMSClient​(java.lang.String region, com.tencent.qcloud.core.auth.QCloudCredentialProvider credentialProvider)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void assetCredentials()  
      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: 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.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • TencentCloudKMSClient

        public TencentCloudKMSClient​(java.lang.String region,
                                     com.tencent.qcloud.core.auth.QCloudCredentialProvider credentialProvider)
    • 方法详细资料

      • assetCredentials

        public void assetCredentials()
                              throws com.tencent.cos.xml.exception.CosXmlClientException
        抛出:
        com.tencent.cos.xml.exception.CosXmlClientException
      • generateDataKey

        public 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.
        指定者:
        generateDataKey 在接口中 QCLOUDKMS
        参数:
        generateDataKeyRequest - GenerateDataKeyRequest
        返回:
        GenerateDataKeyResponse
        抛出:
        com.tencent.cos.xml.exception.CosXmlClientException
      • encrypt

        public 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).
        指定者:
        encrypt 在接口中 QCLOUDKMS
        参数:
        encryptRequest - EncryptRequest
        返回:
        EncryptResponse
        抛出:
        com.tencent.cos.xml.exception.CosXmlClientException - CosXmlClientException
      • decrypt

        public 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: generateDataKey
        指定者:
        decrypt 在接口中 QCLOUDKMS
        参数:
        decryptRequest - DecryptRequest
        返回:
        DecrypResponse
        抛出:
        com.tencent.cos.xml.exception.CosXmlClientException
      • shutdown

        public void shutdown()
        从接口复制的说明: QCLOUDKMS
        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.
        指定者:
        shutdown 在接口中 QCLOUDKMS