Class: TencentCloud::Kms::V20190118::PostQuantumCryptoDecryptResponse

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

Overview

PostQuantumCryptoDecrypt返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PostQuantumCryptoDecryptResponse.



2071
2072
2073
2074
2075
# File 'lib/v20190118/models.rb', line 2071

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。



2069
2070
2071
# File 'lib/v20190118/models.rb', line 2069

def KeyId
  @KeyId
end

#PlainTextObject

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

Parameters:

  • KeyId:

    CMK的全局唯一标识

  • PlainText:

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

  • RequestId:

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



2069
2070
2071
# File 'lib/v20190118/models.rb', line 2069

def PlainText
  @PlainText
end

#RequestIdObject

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

Parameters:

  • KeyId:

    CMK的全局唯一标识

  • PlainText:

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

  • RequestId:

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



2069
2070
2071
# File 'lib/v20190118/models.rb', line 2069

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



2077
2078
2079
2080
2081
# File 'lib/v20190118/models.rb', line 2077

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