Class: TencentCloud::Kms::V20190118::AsymmetricRsaDecryptRequest

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

Overview

AsymmetricRsaDecrypt请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keyid = nil, ciphertext = nil, algorithm = nil) ⇒ AsymmetricRsaDecryptRequest

Returns a new instance of AsymmetricRsaDecryptRequest.



83
84
85
86
87
# File 'lib/v20190118/models.rb', line 83

def initialize(keyid=nil, ciphertext=nil, algorithm=nil)
  @KeyId = keyid
  @Ciphertext = ciphertext
  @Algorithm = algorithm
end

Instance Attribute Details

#AlgorithmObject

Parameters:

  • KeyId:

    CMK的唯一标识

  • Ciphertext:

    使用PublicKey加密的密文,Base64编码

  • Algorithm:

    在使用公钥加密时对应的算法:当前支持RSAES_PKCS1_V1_5、RSAES_OAEP_SHA_1、RSAES_OAEP_SHA_256



81
82
83
# File 'lib/v20190118/models.rb', line 81

def Algorithm
  @Algorithm
end

#CiphertextObject

Parameters:

  • KeyId:

    CMK的唯一标识

  • Ciphertext:

    使用PublicKey加密的密文,Base64编码

  • Algorithm:

    在使用公钥加密时对应的算法:当前支持RSAES_PKCS1_V1_5、RSAES_OAEP_SHA_1、RSAES_OAEP_SHA_256



81
82
83
# File 'lib/v20190118/models.rb', line 81

def Ciphertext
  @Ciphertext
end

#KeyIdObject

Parameters:

  • KeyId:

    CMK的唯一标识

  • Ciphertext:

    使用PublicKey加密的密文,Base64编码

  • Algorithm:

    在使用公钥加密时对应的算法:当前支持RSAES_PKCS1_V1_5、RSAES_OAEP_SHA_1、RSAES_OAEP_SHA_256



81
82
83
# File 'lib/v20190118/models.rb', line 81

def KeyId
  @KeyId
end

Instance Method Details

#deserialize(params) ⇒ Object



89
90
91
92
93
# File 'lib/v20190118/models.rb', line 89

def deserialize(params)
  @KeyId = params['KeyId']
  @Ciphertext = params['Ciphertext']
  @Algorithm = params['Algorithm']
end