Class: TencentCloud::Kms::V20190118::EncryptResponse

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

Overview

Encrypt返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ciphertextblob = nil, keyid = nil, requestid = nil) ⇒ EncryptResponse

Returns a new instance of EncryptResponse.



1289
1290
1291
1292
1293
# File 'lib/v20190118/models.rb', line 1289

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

Instance Attribute Details

#CiphertextBlobObject

Parameters:

  • CiphertextBlob:

    加密后的密文,base64编码。注意:本字段中打包了密文和密钥的相关信息,不是对明文的直接加密结果,只有将该字段作为Decrypt接口的输入参数,才可以解密出原文。

  • KeyId:

    加密使用的CMK的全局唯一标识

  • RequestId:

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



1287
1288
1289
# File 'lib/v20190118/models.rb', line 1287

def CiphertextBlob
  @CiphertextBlob
end

#KeyIdObject

Parameters:

  • CiphertextBlob:

    加密后的密文,base64编码。注意:本字段中打包了密文和密钥的相关信息,不是对明文的直接加密结果,只有将该字段作为Decrypt接口的输入参数,才可以解密出原文。

  • KeyId:

    加密使用的CMK的全局唯一标识

  • RequestId:

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



1287
1288
1289
# File 'lib/v20190118/models.rb', line 1287

def KeyId
  @KeyId
end

#RequestIdObject

Parameters:

  • CiphertextBlob:

    加密后的密文,base64编码。注意:本字段中打包了密文和密钥的相关信息,不是对明文的直接加密结果,只有将该字段作为Decrypt接口的输入参数,才可以解密出原文。

  • KeyId:

    加密使用的CMK的全局唯一标识

  • RequestId:

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



1287
1288
1289
# File 'lib/v20190118/models.rb', line 1287

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



1295
1296
1297
1298
1299
# File 'lib/v20190118/models.rb', line 1295

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