Class: TencentCloud::Kms::V20190118::DecryptResponse

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

Overview

Decrypt返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keyid = nil, plaintext = nil, requestid = nil) ⇒ DecryptResponse

Returns a new instance of DecryptResponse.



484
485
486
487
488
# File 'lib/v20190118/models.rb', line 484

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

Instance Attribute Details

#KeyIdObject

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

Parameters:

  • KeyId:

    CMK的全局唯一标识

  • Plaintext:

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

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



482
483
484
# File 'lib/v20190118/models.rb', line 482

def KeyId
  @KeyId
end

#PlaintextObject

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

Parameters:

  • KeyId:

    CMK的全局唯一标识

  • Plaintext:

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

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



482
483
484
# File 'lib/v20190118/models.rb', line 482

def Plaintext
  @Plaintext
end

#RequestIdObject

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

Parameters:

  • KeyId:

    CMK的全局唯一标识

  • Plaintext:

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

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



482
483
484
# File 'lib/v20190118/models.rb', line 482

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



490
491
492
493
494
# File 'lib/v20190118/models.rb', line 490

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