Class: TencentCloud::Kms::V20190118::GenerateDataKeyResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190118/models.rb

Overview

GenerateDataKey返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keyid = nil, plaintext = nil, ciphertextblob = nil, requestid = nil) ⇒ GenerateDataKeyResponse

Returns a new instance of GenerateDataKeyResponse.



1352
1353
1354
1355
1356
1357
# File 'lib/v20190118/models.rb', line 1352

def initialize(keyid=nil, plaintext=nil, ciphertextblob=nil, requestid=nil)
  @KeyId = keyid
  @Plaintext = plaintext
  @CiphertextBlob = ciphertextblob
  @RequestId = requestid
end

Instance Attribute Details

#CiphertextBlobObject

若调用时提供了 EncryptionPublicKey,则该字段值为使用 EncryptionPublicKey 公钥进行非对称加密后的 Base64 编码的密文。需在 Base64 解码后,使用用户上传的公钥对应的私钥进行进一步解密,以获取 DataKey 明文。

Parameters:

  • KeyId:

    CMK的全局唯一标识

  • Plaintext:

    若调用时未提供 EncryptionPublicKey,该字段值为生成的数据密钥 DataKey 的 Base64 编码的明文,需进行 Base64 解码以获取 DataKey 明文。

  • CiphertextBlob:

    数据密钥DataKey加密后的密文,用户需要自行保存该密文,KMS不托管用户的数据密钥。可以通过Decrypt接口从CiphertextBlob中获取数据密钥DataKey明文

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1350
1351
1352
# File 'lib/v20190118/models.rb', line 1350

def CiphertextBlob
  @CiphertextBlob
end

#KeyIdObject

若调用时提供了 EncryptionPublicKey,则该字段值为使用 EncryptionPublicKey 公钥进行非对称加密后的 Base64 编码的密文。需在 Base64 解码后,使用用户上传的公钥对应的私钥进行进一步解密,以获取 DataKey 明文。

Parameters:

  • KeyId:

    CMK的全局唯一标识

  • Plaintext:

    若调用时未提供 EncryptionPublicKey,该字段值为生成的数据密钥 DataKey 的 Base64 编码的明文,需进行 Base64 解码以获取 DataKey 明文。

  • CiphertextBlob:

    数据密钥DataKey加密后的密文,用户需要自行保存该密文,KMS不托管用户的数据密钥。可以通过Decrypt接口从CiphertextBlob中获取数据密钥DataKey明文

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1350
1351
1352
# File 'lib/v20190118/models.rb', line 1350

def KeyId
  @KeyId
end

#PlaintextObject

若调用时提供了 EncryptionPublicKey,则该字段值为使用 EncryptionPublicKey 公钥进行非对称加密后的 Base64 编码的密文。需在 Base64 解码后,使用用户上传的公钥对应的私钥进行进一步解密,以获取 DataKey 明文。

Parameters:

  • KeyId:

    CMK的全局唯一标识

  • Plaintext:

    若调用时未提供 EncryptionPublicKey,该字段值为生成的数据密钥 DataKey 的 Base64 编码的明文,需进行 Base64 解码以获取 DataKey 明文。

  • CiphertextBlob:

    数据密钥DataKey加密后的密文,用户需要自行保存该密文,KMS不托管用户的数据密钥。可以通过Decrypt接口从CiphertextBlob中获取数据密钥DataKey明文

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1350
1351
1352
# File 'lib/v20190118/models.rb', line 1350

def Plaintext
  @Plaintext
end

#RequestIdObject

若调用时提供了 EncryptionPublicKey,则该字段值为使用 EncryptionPublicKey 公钥进行非对称加密后的 Base64 编码的密文。需在 Base64 解码后,使用用户上传的公钥对应的私钥进行进一步解密,以获取 DataKey 明文。

Parameters:

  • KeyId:

    CMK的全局唯一标识

  • Plaintext:

    若调用时未提供 EncryptionPublicKey,该字段值为生成的数据密钥 DataKey 的 Base64 编码的明文,需进行 Base64 解码以获取 DataKey 明文。

  • CiphertextBlob:

    数据密钥DataKey加密后的密文,用户需要自行保存该密文,KMS不托管用户的数据密钥。可以通过Decrypt接口从CiphertextBlob中获取数据密钥DataKey明文

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1350
1351
1352
# File 'lib/v20190118/models.rb', line 1350

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



1359
1360
1361
1362
1363
1364
# File 'lib/v20190118/models.rb', line 1359

def deserialize(params)
  @KeyId = params['KeyId']
  @Plaintext = params['Plaintext']
  @CiphertextBlob = params['CiphertextBlob']
  @RequestId = params['RequestId']
end